blob: 5b25bd9a73f2e2872a816374650c4a3516bf7981 [file]
// IGNORE_BACKEND: WASM
// FILE: test.kt
fun box() {
var x = false
f {
x = true
}
}
fun f(block: () -> Unit) {
block()
}
// EXPECTATIONS JVM JVM_IR
// test.kt:4 box
// test.kt:5 box
// test.kt:11 f
// test.kt:6 invoke
// test.kt:7 invoke
// test.kt:11 f
// test.kt:12 f
// test.kt:8 box
// EXPECTATIONS JS_IR
// test.kt:4 box
// test.kt:5 box
// test.kt:5 box$lambda
// test.kt:5 box
// test.kt:11 f
// test.kt:6 box$lambda$lambda
// test.kt:7 box$lambda$lambda
// test.kt:12 f
// test.kt:8 box