Files
kotlin-fork/compiler/testData/debug/stepping/suspendFunWithSuspendLambdaParameter.kt
T
Mads Ager e9c9d5731e [JVM] Port Stepping and LocalVariable tests to new test infra.
This is in preparation for enabling the tests for FIR which will
be easier to do when the tests are on the new infrastructure.
2021-10-15 20:03:54 +03:00

23 lines
501 B
Kotlin
Vendored

// WITH_RUNTIME
// 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
// test.kt:8 box
// test.kt:4 foo
// test.kt:8 box
// test.kt:11 box