mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
14 lines
264 B
Kotlin
Vendored
14 lines
264 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND: JVM_IR
|
|
|
|
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
|