36 lines
708 B
Kotlin
Vendored
36 lines
708 B
Kotlin
Vendored
|
|
// 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_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
|
|
|
|
// EXPECTATIONS WASM
|