mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
21 lines
363 B
Kotlin
Vendored
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 |