blob: a917055ba635fdf8fe3f5cbf8056b2102095f09c [file]
// DONT_TARGET_EXACT_BACKEND: JS_IR
// ^^^ Test hangs while executing the debugger.
// MODULE: a
// FILE: a.kt
inline fun <T, R> T.myLet(block: (T) -> R): R {
return block(this)
}
// MODULE: b(a)
// FILE: test.kt
fun box(): String {
"O".myLet {
val result = it + "K"
return result
}
}
// EXPECTATIONS JVM_IR
// test.kt:15 box
// a.kt:8 box
// test.kt:16 box
// test.kt:17 box
// EXPECTATIONS NATIVE
// test.kt:15 box
// a.kt:8 box
// test.kt:16 box
// test.kt:16 box
// test.kt:17 box
// test.kt:19 box
// EXPECTATIONS WASM
// test.kt:15 $box (4, 8)
// a.kt:8 $box (17, 11)
// test.kt:16 $box (21, 26, 21)
// test.kt:17 $box (15, 8)