Files
kotlin-fork/compiler/fir/psi2fir/testData/rawBuilder/expressions/arrayAssignment.txt
T
Mikhail Glukhikh d736a7da6b Raw FIR: get rid of array gets, use array sets only for modifications
(a[b] += c etc. cannot be replaced with get/set calls easily)
2019-04-05 16:18:58 +03:00

12 lines
359 B
Plaintext
Vendored

FILE: arrayAssignment.kt
public? final? fun test(): kotlin/Unit {
lval x: <implicit> = intArrayOf#(Int(1), Int(2), Int(3))
x#.set#(Int(1), Int(0))
}
public? final? fun foo(): <implicit> {
^foo Int(1)
}
public? final? fun test2(): kotlin/Unit {
intArrayOf#(Int(1), Int(2), Int(3)).set#(foo#(), Int(1))
}