Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/nonOverridingMethodsAreCalledByInlineClass.kt
2019-06-13 12:25:06 +02:00

13 lines
238 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-impl \(I\)V