Files
kotlin-fork/idea/jvm-debugger/jvm-debugger-test/testData/stepping/stepOver/stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral.kt
T
Yan Zhulanow 472ec72eb9 Refactor debugger tests
1. Move tests to their own module
2. Avoid sharing the 'tinyApp' project between tests
3. Clean up option directive handling
2019-10-08 19:13:56 +09:00

42 lines
597 B
Kotlin
Vendored

// ATTACH_LIBRARY: coroutines
package stopInInlinedLambdaInSuspendFunctionWithSuspendPointsInObjectLiteral
import forTests.builder
fun foo(a: Any) {}
suspend fun second() { }
interface Bar {
suspend fun first()
}
inline fun call(f: () -> Unit) {
f()
}
val bar = object : Bar {
val t = 121
override suspend fun first() {
foo("first")
call {
{
//Breakpoint!
foo(t)
}()
}
second()
foo("second")
}
}
fun main(args: Array<String>) {
builder {
bar.first()
}
}