| |
| // 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:6 foo |
| // test.kt:6 foo |
| // test.kt:11 doResume |
| // test.kt:13 doResume |
| |
| // EXPECTATIONS WASM |
| // test.kt:13 $box (1) |
| // coroutineHelpers.kt:9 $EmptyContinuation.<get-context> (37) |
| // test.kt:13 $box (1) |
| // test.kt:10 $$boxCOROUTINE$.doResume (4) |
| // test.kt:6 $foo (14, 11, 14) |
| // test.kt:11 $box$slambda.invoke (8, 12) |
| // test.kt:6 $foo (4) |
| // test.kt:10 $$boxCOROUTINE$.doResume (4) |
| // test.kt:13 $$boxCOROUTINE$.doResume (1) |
| // test.kt:10 $$boxCOROUTINE$.doResume (4) |
| // test.kt:13 $$boxCOROUTINE$.doResume (0) |
| // test.kt:13 $box (1) |