Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/unboxInlineClassAfterElvis.kt
2018-02-09 05:06:31 +03:00

14 lines
258 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
inline class UInt(private val u: Int)
fun test(x: UInt?, y: UInt) {
val a = x ?: y // unbox
val b = x ?: x!! // unbox unbox
}
// 0 INVOKESTATIC UInt\$Erased.box
// 3 INVOKEVIRTUAL UInt.unbox
// 0 valueOf
// 0 intValue