Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/nonOverridingMethodsAreCalledByInlineClass.kt
Dmitry Petrov 80a67477db Generate method calls for inline classes through IC, not IC$Erased
IC extends IC$Erased, so it should be fine.
2018-09-05 12:20:57 +03:00

13 lines
233 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
inline class Z(val x: Int) {
fun foo() {}
}
fun testZ(z: Z) = z.foo()
fun testNZ(z: Z?) = z?.foo()
// 0 INVOKESTATIC Z\$Erased\.foo
// 0 INVOKESTATIC Z\-Erased\.foo
// 2 INVOKESTATIC Z\.foo \(I\)V