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

24 lines
322 B
Kotlin
Vendored

// FILE: test.kt
fun box() {
foo()
bar()
}
fun foo(i: Int = 1) {
}
inline fun bar(i: Int = 1) {
}
// FORCE_STEP_INTO
// LINENUMBERS
// test.kt:4 box
// test.kt:8 foo$default (synthetic)
// test.kt:9 foo
// test.kt:8 foo$default (synthetic)
// test.kt:5 box
// test.kt:11 box
// test.kt:12 box
// test.kt:6 box