Files
kotlin-fork/compiler/testData/debug/stepping/lambdaStepInline.kt
T
Kristoffer Andersen 7ec4c9990a [JVM] Improve debug step behavior around lambdas.
- Add tests to clarify problematic behavior
- Avoid line numbers on return instructions of lambdas without explicit returns
2020-04-15 14:33:49 +02:00

23 lines
309 B
Kotlin
Vendored

// FILE: test.kt
inline fun foo(stringMaker: () -> String): String {
return stringMaker()
}
fun box(): String {
foo { "OK "}
foo {
"OK"
// Comment
}
return "OK"
}
// LINENUMBERS
// test.kt:8
// test.kt:4
// test.kt:8
// test.kt:9
// test.kt:4
// test.kt:10
// test.kt:13