mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Add KotlinType info about this inside inline class
This commit is contained in:
20
compiler/testData/codegen/bytecodeText/inlineClasses/boxThisOfInlineClass.kt
vendored
Normal file
20
compiler/testData/codegen/bytecodeText/inlineClasses/boxThisOfInlineClass.kt
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
// !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
|
||||
Reference in New Issue
Block a user