blob: 3757413d5fd229d9abad03a26935792deb2923d6 [file]
// FILE: test.kt
inline fun foo(stringMaker: () -> String): String {
return stringMaker()
}
fun box(): String {
foo { "OK "}
foo {
"OK"
// Comment
}
return "OK"
}
// EXPECTATIONS JVM_IR
// test.kt:9 box
// test.kt:5 box
// test.kt:9 box
// test.kt:5 box
// test.kt:10 box
// test.kt:5 box
// test.kt:11 box
// test.kt:5 box
// test.kt:14 box
// EXPECTATIONS NATIVE
// test.kt:9 box
// test.kt:5 box
// test.kt:9 box
// test.kt:5 box
// test.kt:10 box
// test.kt:5 box
// test.kt:11 box
// test.kt:5 box
// test.kt:14 box
// test.kt:15 box
// EXPECTATIONS JS_IR
// test.kt:14 box
// EXPECTATIONS WASM
// test.kt:9 $box (4)
// test.kt:5 $box (11)
// test.kt:9 $box (10, 15)
// test.kt:5 $box (4)
// test.kt:10 $box (4)
// test.kt:5 $box (11)
// test.kt:11 $box (8, 12)
// test.kt:5 $box (4)
// test.kt:14 $box (11, 4)