5e27d9b089
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.
25 lines
407 B
Kotlin
Vendored
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 |