Files
kotlin-fork/compiler/testData/codegen/boxInline/localFunInLambda/localFunInLambdaCapturesAnotherFun.kt
T
2018-08-02 13:19:24 +02:00

27 lines
336 B
Kotlin
Vendored

// FILE: 1.kt
package test
public inline fun myRun(block: () -> Unit) {
return block()
}
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
var res = ""
myRun {
fun f1() {
res = "OK"
}
fun f2() {
f1()
}
f2()
}
return res
}