blob: 24944c2a3ca368ffbfa08c11dd4f99507ecd80ba [file]
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
class Inline {
inline fun calc(s: (Int) -> Int, p: Int) : Int {
return s(p)
}
}
// FILE: 2.kt
fun test1(): Int {
val inlineX = Inline()
var p = { l : Int -> l};
return inlineX.calc(p, 25)
}
fun box(): String {
if (test1() != 25) return "test1: ${test1()}"
return "OK"
}