Files
2020-03-24 18:58:19 +03:00

13 lines
213 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
inline class Z(val data: Int)
val xs = Array(2) { Z(42) }
fun box(): String {
xs[0] = Z(12)
val t = xs[0]
if (t.data != 12) throw AssertionError("$t")
return "OK"
}