mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
23 lines
456 B
Kotlin
Vendored
23 lines
456 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
// TODO KT-36769 Missing LVT entries for inline function (default) parameters at call site
|
|
|
|
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 |