Files
kotlin/compiler/testData/codegen/boxInline/localFunInLambda/lambdaInLambdaCapturesAnotherFun.kt
2018-08-09 14:22:50 +03:00

28 lines
347 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"
}
val x: () -> Unit = {
f1()
}
x()
}
return res
}