Files
kotlin-fork/compiler/fir/psi2fir/testData/rawBuilder/expressions/arrayAssignment.txt
T
2019-12-09 17:24:26 +03:00

12 lines
475 B
Plaintext
Vendored

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