Files
kotlin-fork/compiler/testData/debug/stepping/suspendFunWithSuspendLambdaParameter.kt
T
Kristoffer Andersen 836261ba6e [Test] Ignore test infrastucture sources in debugging tests
This solves no immediate deficiency, but is a to-do that arose as part
of an ongoing effort to port the old, slightly too restrictive
checkLocalVariableTable tests to the more "functional" debugger
infrastructure.

This just shaves a little bit of overhead off the test expectations
and couples them less tightly to the specifics of the test
infrastructure.
2021-01-28 08:09:42 +01:00

24 lines
411 B
Kotlin
Vendored

// WITH_COROUTINES
// FILE: test.kt
suspend fun foo(block: suspend Long.() -> String): String {
return 1L.block()
}
suspend fun box() {
foo {
"OK"
}
}
// LINENUMBERS
// test.kt:8 box
// test.kt:4 foo
// test.kt:-1 <init>
// test.kt:-1 create
// test.kt:-1 invoke
// test.kt:8 invokeSuspend
// test.kt:9 invokeSuspend
// test.kt:-1 invoke
// test.kt:4 foo
// test.kt:8 box
// test.kt:11 box