Files
kotlin-fork/compiler/testData/debug/stepping/suspendFunWithLambdaParameter.kt
Alexander Udalov 3f034e8b67 Enable lightweight lambdas (aka invokedynamic) since 2.0
#KT-45375 Fixed
 #KT-58173 Open
2024-02-08 19:46:18 +00:00

34 lines
557 B
Kotlin
Vendored

// WITH_STDLIB
// FILE: test.kt
suspend fun foo(block: Long.() -> String): String {
return 1L.block()
}
suspend fun box() {
foo {
"OK"
}
}
// EXPECTATIONS JVM_IR
// test.kt:9 box
// test.kt:5 foo
// EXPECTATIONS ClassicFrontend JVM_IR
// test.kt:10 invoke
// EXPECTATIONS FIR JVM_IR
// test.kt:10 box$lambda$0
// EXPECTATIONS JVM_IR
// 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
// EXPECTATIONS WASM