Files
kotlin-fork/compiler/testData/debug/stepping/suspendFunWithLambdaParameter.kt
T
2023-08-15 17:03:11 +00:00

28 lines
446 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WITH_STDLIB
// FILE: test.kt
suspend fun foo(block: Long.() -> String): String {
return 1L.block()
}
suspend fun box() {
foo {
"OK"
}
}
// EXPECTATIONS JVM JVM_IR
// test.kt:9 box
// test.kt:5 foo
// test.kt:10 invoke
// test.kt:5 foo
// test.kt:9 box
// test.kt:12 box
// EXPECTATIONS JS_IR
// test.kt:9 doResume
// test.kt:5 foo
// test.kt:5 foo
// test.kt:10 box$lambda
// test.kt:12 doResume