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

34 lines
713 B
Kotlin
Vendored

// IGNORE_BACKEND: WASM
// WITH_STDLIB
// FILE: test.kt
suspend fun foo(block: suspend Long.() -> String): String {
return 1L.block()
}
suspend fun box() {
foo {
"OK"
}
}
// This is the actual unfortunate stepping behavior in intellij.
// There is a class exclusion filter for anything in the kotlin package.
// That means that we never step into the lambda as that is only
// called via code in the kotlin package.
// EXPECTATIONS JVM JVM_IR
// test.kt:10 box
// test.kt:6 foo
// test.kt:10 box
// test.kt:13 box
// EXPECTATIONS JS_IR
// test.kt:10 doResume
// test.kt:10 box$slambda
// test.kt:10 doResume
// test.kt:7 foo
// test.kt:6 foo
// test.kt:11 doResume
// test.kt:13 doResume