Files
kotlin-fork/compiler/testData/codegen/boxInline/smap/newsmap/mappingInInlineFunLambda.kt
T
2021-02-02 17:53:53 +03:00

31 lines
346 B
Kotlin
Vendored

// FILE: 1.kt
package test
inline fun myrun(s: () -> Unit) {
val z = "myrun"
s()
}
inline fun test(crossinline s: () -> Unit) {
{
val z = 1;
myrun(s)
val x = 1;
}()
}
// FILE: 2.kt
import test.*
fun box(): String {
var result = "fail"
test {
result = "OK"
}
return result
}