Files
kotlin-fork/compiler/testData/ir/irJsText/scripting/arrayAssignment.kts
T
2019-10-10 12:52:05 +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
}