Fix code generation for Array<C> element access where C is inline class
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// IGNORE_BACKEND: JVM_IR, JS_IR
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user