blob: 9c5eb1a069e386eedde08fa5ceefb2e7a2107758 [file] [log] [blame]
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
public inline fun myRun(block: () -> Unit) {
return block()
}
// FILE: 2.kt
import test.*
fun box(): String {
var res = ""
myRun {
fun f1() {
res = "OK"
}
val x: () -> Unit = {
f1()
}
x()
}
return res
}