mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
215 B
Kotlin
Vendored
11 lines
215 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class Z1(val x: Int)
|
|
inline class Z2(val x: Z1)
|
|
|
|
fun test(zs: MutableList<Z2>, z: Z2) {
|
|
zs.add(z)
|
|
}
|
|
|
|
// 1 public final static box\(I\)LZ2;
|
|
// 1 INVOKESTATIC Z2\.box \(I\)LZ2; |