Files
kotlin-fork/compiler/testData/codegen/box/arrays/arraysOfInlineClass/accessArrayOfUnsigned.kt
T
2018-09-19 17:45:07 +03:00

12 lines
188 B
Kotlin
Vendored

// WITH_UNSIGNED
// IGNORE_BACKEND: JVM_IR
val xs = Array(2) { 42u }
fun box(): String {
xs[0] = 12u
val t = xs[0]
if (t != 12u) throw AssertionError("$t")
return "OK"
}