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 /objectWithInitializers.kt
CLASS CLASS Base
$new: VALUE_PARAMETER <receiver: Base>
$new: VALUE_PARAMETER this@Base: Base
CONSTRUCTOR public constructor Base()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
@@ -9,7 +9,7 @@ FILE /objectWithInitializers.kt
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
CLASS OBJECT Test
$new: VALUE_PARAMETER <receiver: Test>
$new: VALUE_PARAMETER this@Test: Test
CONSTRUCTOR private constructor Test()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
@@ -19,25 +19,25 @@ FILE /objectWithInitializers.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='1'
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Test>
$this: VALUE_PARAMETER this@Test: Test
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Int'
GET_FIELD 'x: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: Test>' type=Test origin=null
receiver: GET_VAR 'this@Test: Test' type=Test origin=null
PROPERTY public final val y: kotlin.Int
FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-y>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Test>
$this: VALUE_PARAMETER this@Test: Test
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-y>(): Int'
GET_FIELD 'y: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: Test>' type=Test origin=null
receiver: GET_VAR 'this@Test: Test' type=Test origin=null
ANONYMOUS_INITIALIZER Test
BLOCK_BODY
SET_FIELD 'y: Int' type=kotlin.Unit origin=null
receiver: GET_VAR '<receiver: Test>' type=Test origin=null
receiver: GET_VAR 'this@Test: Test' type=Test origin=null
value: CALL '<get-x>(): Int' type=kotlin.Int origin=GET_PROPERTY
$this: GET_VAR '<receiver: Test>' type=Test origin=null
$this: GET_VAR 'this@Test: Test' type=Test origin=null
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