Files
kotlin/compiler/testData/codegen/bytecodeText/defaultArguments/methodHandlerElumination.kt
Mikhael Bogdanov 02cc5f6bc1 Expand default parameters conditions on inlining default function
#KT-14564 Fixed
 #KT-10848 Fixed
 #KT-12497 Fixed
2017-04-28 12:19:07 +02:00

15 lines
224 B
Kotlin
Vendored

open class A {
inline fun test(p: String = "OK"): String {
return p
}
}
fun box(): String {
return A().test()
}
//handler check in test$default
// 1 IFNULL
//mask check in test$default
// 1 IFEQ
// 2 IF