Files
kotlin-fork/compiler/testData/debug/stepping/functionCallWithInlinedLambdaParam.kt
2024-03-04 15:05:23 +00:00

52 lines
766 B
Kotlin
Vendored

// FILE: test.kt
fun box() {
foo({
val a = 1
})
foo() {
val a = 1
}
}
inline fun foo(f: () -> Unit) {
val a = 1
f()
}
// EXPECTATIONS JVM_IR
// test.kt:6 box
// test.kt:16 box
// test.kt:17 box
// test.kt:7 box
// test.kt:8 box
// test.kt:17 box
// test.kt:18 box
// test.kt:10 box
// test.kt:16 box
// test.kt:17 box
// test.kt:11 box
// test.kt:12 box
// test.kt:17 box
// test.kt:18 box
// test.kt:13 box
// EXPECTATIONS JS_IR
// test.kt:16 box
// test.kt:7 box
// test.kt:16 box
// test.kt:11 box
// test.kt:13 box
// EXPECTATIONS WASM
// test.kt:6 $box
// test.kt:16 $box (12, 4, 12, 4)
// test.kt:17 $box (4, 4)
// test.kt:7 $box (20, 12)
// test.kt:10 $box
// test.kt:11 $box (16, 8)
// test.kt:13 $box