Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/boxThisOfInlineClass.kt
2018-02-13 13:16:41 +03:00

20 lines
355 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
inline class UInt(val a: Int) {
fun test() {
takeNullable(this) // box
takeAnyInside(this) // box
takeAnyInside(this.a) // box int
}
fun takeAnyInside(a: Any) {}
}
fun takeNullable(a: UInt?) {}
// 2 INVOKESTATIC UInt\$Erased.box
// 0 INVOKEVIRTUAL Foo.unbox
// 1 valueOf
// 0 intValue