Files
kotlin-fork/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/arrayAssignment.txt
T
2023-07-26 06:09:15 +00:00

14 lines
501 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))
Unit
}
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))
Unit
}