Files
kotlin-fork/compiler/testData/debug/stepping/lambdaStepInline.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

24 lines
339 B
Kotlin
Vendored

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