Files
kotlin-fork/compiler/testData/debug/stepping/simpleDefaultArgWithInline.kt
T
Steven Schäfer 5e27d9b089 JVM IR: Make inlining in $default stubs compatible with the JVM BE
The JVM BE inlines calls to the underlying function in a $default stub
verbatim, e.g., without renaming LVT entries or regenerating anonymous
objects. This commit introduces the same behavior in the JVM IR BE.

Fixes KT-36769.
2020-09-24 07:53:31 +02:00

25 lines
407 B
Kotlin
Vendored

// FILE: test.kt
inline fun ifoo(ok: String = "OK"): String {
return ok
}
fun ifoo2(ok: String = "OK"): String {
return ok
}
fun box(): String {
ifoo()
return ifoo2()
}
// FORCE_STEP_INTO
// LINENUMBERS
// test.kt:12 box
// test.kt:3 box
// test.kt:4 box
// test.kt:13 box
// test.kt:7 ifoo2$default (synthetic)
// test.kt:8 ifoo2
// test.kt:7 ifoo2$default (synthetic)
// test.kt:13 box