Files
kotlin-fork/compiler/testData/ir/irText/expressions/arrayAssignment.txt
T
2016-10-18 09:09:04 +03:00

28 lines
1.3 KiB
Plaintext
Vendored

FILE /arrayAssignment.kt
FUN public fun test(): kotlin.Unit
BLOCK_BODY
VAR val x: kotlin.IntArray
CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray operator=null
elements: VARARG type=IntArray varargElementType=Int
CONST Int type=kotlin.Int value='1'
CONST Int type=kotlin.Int value='2'
CONST Int type=kotlin.Int value='3'
CALL 'set(Int, Int): Unit' type=kotlin.Unit operator=EQ
$this: GET_VAR 'x: IntArray' type=kotlin.IntArray operator=null
index: CONST Int type=kotlin.Int value='1'
value: CONST Int type=kotlin.Int value='0'
FUN public fun foo(): kotlin.Int
BLOCK_BODY
RETURN type=kotlin.Nothing from='foo(): Int'
CONST Int type=kotlin.Int value='1'
FUN public fun test2(): kotlin.Unit
BLOCK_BODY
CALL 'set(Int, Int): Unit' type=kotlin.Unit operator=EQ
$this: CALL 'intArrayOf(vararg Int): IntArray' type=kotlin.IntArray operator=null
elements: VARARG type=IntArray varargElementType=Int
CONST Int type=kotlin.Int value='1'
CONST Int type=kotlin.Int value='2'
CONST Int type=kotlin.Int value='3'
index: CALL 'foo(): Int' type=kotlin.Int operator=null
value: CONST Int type=kotlin.Int value='1'