Render receivers as 'this@owner: type'

Add test for generic inner class with generic outer class.
This commit is contained in:
Dmitry Petrov
2017-04-19 18:19:31 +03:00
parent 1bf6f8fc57
commit a511540aad
99 changed files with 944 additions and 905 deletions
@@ -1,6 +1,6 @@
FILE /Derived.kt
CLASS CLASS Derived
$new: VALUE_PARAMETER <receiver: Derived>
$new: VALUE_PARAMETER this@Derived: Derived
CONSTRUCTOR public constructor Derived()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
@@ -8,20 +8,20 @@ FILE /Derived.kt
ANONYMOUS_INITIALIZER Derived
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null
value: CONST Int type=kotlin.Int value='0'
FUN public final fun getValue(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Derived>
$this: VALUE_PARAMETER this@Derived: Derived
BLOCK_BODY
RETURN type=kotlin.Nothing from='getValue(): Int'
GET_FIELD 'value: Int' type=kotlin.Int origin=GET_PROPERTY
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null
FUN public final fun setValue(value: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Derived>
$this: VALUE_PARAMETER this@Derived: Derived
VALUE_PARAMETER value-parameter value: kotlin.Int
BLOCK_BODY
SET_FIELD 'value: Int' type=kotlin.Unit origin=EQ
receiver: GET_VAR '<receiver: Derived>' type=Derived origin=null
receiver: GET_VAR 'this@Derived: Derived' type=Derived origin=null
value: GET_VAR 'value-parameter value: Int' type=kotlin.Int origin=null
PROPERTY FAKE_OVERRIDE public final override var value: kotlin.Int
FIELD FAKE_OVERRIDE public final override var value: kotlin.Int