Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/overridingMethodsAreCalledByInlineClass.kt
2018-12-21 16:20:45 +01:00

21 lines
363 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// 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-impl \(I\)V