Generate method calls for inline classes through IC, not IC$Erased
IC extends IC$Erased, so it should be fine.
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
// FILE: Z.kt
|
||||
inline class Z(val x: Int)
|
||||
|
||||
// FILE: Test.kt
|
||||
fun testZ(z: Z) = z.hashCode()
|
||||
fun testNZ(z: Z?) = z?.hashCode()
|
||||
|
||||
// @TestKt.class:
|
||||
// 0 INVOKESTATIC Z\$Erased\.hashCode
|
||||
// 0 INVOKESTATIC Z\-Erased\.hashCode
|
||||
// 2 INVOKESTATIC Z\.hashCode \(I\)I
|
||||
Reference in New Issue
Block a user