Files
kotlin-fork/compiler/testData/codegen/bytecodeText/inlineClasses/boxThisOfInlineClass.kt
T
2021-05-12 06:50:06 +00:00

25 lines
427 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?) {}
// 1 valueOf
// 0 intValue
// -- 1 before takeNullable
// -- 1 before takeAnyInside
// 2 INVOKESTATIC UInt\.box
// -- equals-impl
// 1 INVOKEVIRTUAL UInt\.unbox