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.
20 lines
338 B
Kotlin
Vendored
20 lines
338 B
Kotlin
Vendored
inline fun test(p: String = "OK"): String {
|
|
return p
|
|
}
|
|
|
|
fun box() : String {
|
|
return test()
|
|
}
|
|
|
|
//mask check in test$default
|
|
// 1 IFEQ
|
|
|
|
//total ifs
|
|
// 1 IF
|
|
|
|
//no default argument on call site
|
|
// 0 NULL
|
|
|
|
//proper variable start label: after assignment
|
|
// 1 LOCALVARIABLE p\$iv Ljava/lang/String; L2 L4 0
|
|
// 1 LDC "OK"\s*ASTORE 0\s*L2 |