Files
kotlin-fork/compiler/testData/ir/irText/arrayAssignment.kt
T
2016-10-18 09:08:14 +03:00

10 lines
126 B
Kotlin
Vendored

fun test() {
val x = intArrayOf(1, 2, 3)
x[1] = 0
}
fun foo() = 1
fun test2() {
intArrayOf(1, 2, 3)[foo()] = 1
}