| // 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 | |
| // test.kt:9 box | |
| // test.kt:10 box | |
| // test.kt:6 foo | |
| // test.kt:10 box | |
| // test.kt:13 box | |
| // EXPECTATIONS NATIVE | |
| // test.kt:9 box | |
| // test.kt:9 invokeSuspend | |
| // test.kt:9 invokeSuspend | |
| // test.kt:10 invokeSuspend | |
| // test.kt:5 foo | |
| // test.kt:6 foo | |
| // test.kt:6 foo | |
| // test.kt:7 foo | |
| // test.kt:10 invokeSuspend | |
| // test.kt:10 invokeSuspend | |
| // test.kt:9 invokeSuspend | |
| // test.kt:13 invokeSuspend | |
| // test.kt:9 box | |
| // test.kt:13 box | |
| // EXPECTATIONS JS_IR | |
| // test.kt:10 doResume | |
| // test.kt:10 box$slambda_0 | |
| // 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 $SuspendLambda_0.doResume (8) | |
| // test.kt:10 $$boxCOROUTINE$.doResume (8, 4) | |
| // test.kt:6 $foo (14, 11, 14) | |
| // test.kt:10 $SuspendFunction1.invoke (8) | |
| // test.kt:10 $box$slambda.invoke (8) | |
| // test.kt:11 $box$slambda.invoke (8, 12) | |
| // test.kt:10 $SuspendFunction1.invoke (8) | |
| // test.kt:6 $foo (4) | |
| // test.kt:10 $$boxCOROUTINE$.doResume (4) | |
| // test.kt:13 $$boxCOROUTINE$.doResume (1) | |
| // test.kt:10 $$boxCOROUTINE$.doResume (8, 4) | |
| // test.kt:13 $$boxCOROUTINE$.doResume (0) | |
| // test.kt:10 $SuspendLambda_0.doResume (8) | |
| // test.kt:13 $box (1) |