blob: f8b6a22d1c78375dfb874e296668a102e44bd716 [file]
// FILE: 1.kt
package test
inline fun f(g: (Int) -> Int) = g(2)
inline fun h() = 1
// FILE: 2.kt
import test.*
fun box(): String {
val result = f { it + h() }
return if (result == 3) "OK" else "fail: $result"
}