Files
kotlin-fork/compiler/testData/debug/stepping/lambdaStepInlineWithDefaults.kt
T
Ivan Kylchik eb86aabb50 [FIR LT] Unmute some stepping and local variable tests
Corresponding tests were fixed together with #KT-56982, #KT-56913,
#KT-56926
2023-03-21 16:33:00 +00:00

38 lines
608 B
Kotlin
Vendored

// FILE: test.kt
inline fun foo(stringMaker: () -> String = { "OK" }): String {
return stringMaker()
}
inline fun foo2(stringMaker: () -> String = {
"OK"
// Comment
}): String {
return stringMaker()
}
fun box(): String {
foo()
foo2()
return "OK"
}
// EXPECTATIONS JVM JVM_IR
// test.kt:14 box
// test.kt:2 box
// test.kt:3 box
// test.kt:2 box
// test.kt:3 box
// test.kt:15 box
// test.kt:6 box
// test.kt:10 box
// test.kt:7 box
// test.kt:10 box
// test.kt:16 box
// EXPECTATIONS JS_IR
// test.kt:2 box
// test.kt:3 box
// test.kt:7 box
// test.kt:10 box
// test.kt:16 box