Files
kotlin-fork/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.txt
T
Dmitry Petrov fa4dc26814 Put 'thisReceiver' declaration in class
Interfaces also have 'thisReceiver'
2017-05-04 09:33:03 +03:00

38 lines
2.1 KiB
Plaintext
Vendored

FILE /arrayAugmentedAssignment2.kt
CLASS INTERFACE IA
$this: VALUE_PARAMETER this@IA: IA
FUN public abstract operator fun get(index: kotlin.String): kotlin.Int
$this: VALUE_PARAMETER this@IA: IA
VALUE_PARAMETER value-parameter index: kotlin.String
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS INTERFACE IB
$this: VALUE_PARAMETER this@IB: IB
FUN public abstract operator fun IA.set(index: kotlin.String, value: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER this@IB: IB
$receiver: VALUE_PARAMETER this@set: IA
VALUE_PARAMETER value-parameter index: kotlin.String
VALUE_PARAMETER value-parameter value: kotlin.Int
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
FUN public fun IB.test(a: IA): kotlin.Unit
$receiver: VALUE_PARAMETER this@test: IB
VALUE_PARAMETER value-parameter a: IA
BLOCK_BODY
BLOCK type=kotlin.Unit origin=PLUSEQ
VAR IR_TEMPORARY_VARIABLE val tmp0_array: IA
GET_VAR 'value-parameter a: IA' type=IA origin=null
VAR IR_TEMPORARY_VARIABLE val tmp1_index0: kotlin.String
CONST String type=kotlin.String value=''
CALL 'set(String, Int) on IA: Unit' type=kotlin.Unit origin=PLUSEQ
$this: GET_VAR 'this@test: IB' type=IB origin=null
$receiver: GET_VAR 'tmp0_array: IA' type=IA origin=null
index: GET_VAR 'tmp1_index0: String' type=kotlin.String origin=null
value: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
$this: CALL 'get(String): Int' type=kotlin.Int origin=PLUSEQ
$this: GET_VAR 'tmp0_array: IA' type=IA origin=null
index: GET_VAR 'tmp1_index0: String' type=kotlin.String origin=null
other: CONST Int type=kotlin.Int value='42'