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:
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
// FILE: Z.kt
|
||||
interface IFoo {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
inline class Z(val x: Int) : IFoo {
|
||||
override fun foo() {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
fun testZ(z: Z) = z.foo()
|
||||
|
||||
fun testNZ(z: Z?) = z?.foo()
|
||||
|
||||
// @TestKt.class:
|
||||
// 0 INVOKESTATIC Z\$Erased\.foo
|
||||
// 0 INVOKESTATIC Z\-Erased\.foo
|
||||
// 2 INVOKESTATIC Z\.foo \(I\)V
|
||||
Reference in New Issue
Block a user