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
+9 -9
View File
@@ -1,44 +1,44 @@
FILE /superCalls.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()'
INSTANCE_INITIALIZER_CALL classDescriptor='Base'
FUN public open fun foo(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Base>
$this: VALUE_PARAMETER this@Base: Base
BLOCK_BODY
PROPERTY public open val bar: kotlin.String = ""
FIELD PROPERTY_BACKING_FIELD public open val bar: kotlin.String = ""
EXPRESSION_BODY
CONST String type=kotlin.String value=''
FUN DEFAULT_PROPERTY_ACCESSOR public open fun <get-bar>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Base>
$this: VALUE_PARAMETER this@Base: Base
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): String'
GET_FIELD 'bar: String' type=kotlin.String origin=null
receiver: GET_VAR '<receiver: Base>' type=Base origin=null
receiver: GET_VAR 'this@Base: Base' type=Base 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
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()'
INSTANCE_INITIALIZER_CALL classDescriptor='Derived'
FUN public open override fun foo(): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Derived>
$this: VALUE_PARAMETER this@Derived: Derived
BLOCK_BODY
CALL 'foo(): Unit' superQualifier=Base type=kotlin.Unit origin=null
$this: GET_VAR '<receiver: Derived>' type=Derived origin=null
$this: GET_VAR 'this@Derived: Derived' type=Derived origin=null
PROPERTY public open override val bar: kotlin.String
FUN public open override fun <get-bar>(): kotlin.String
$this: VALUE_PARAMETER <receiver: Derived>
$this: VALUE_PARAMETER this@Derived: Derived
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): String'
CALL '<get-bar>(): String' superQualifier=Base type=kotlin.String origin=GET_PROPERTY
$this: GET_VAR '<receiver: Derived>' type=Derived origin=null
$this: GET_VAR 'this@Derived: Derived' type=Derived 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