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
@@ -83,7 +83,7 @@ FILE /primitivesImplicitConversions.kt
$this: CONST Int type=kotlin.Int value='1'
BLOCK_BODY
CLASS CLASS TestImplicitArguments
$new: VALUE_PARAMETER <receiver: TestImplicitArguments>
$new: VALUE_PARAMETER this@TestImplicitArguments: TestImplicitArguments
CONSTRUCTOR public constructor TestImplicitArguments(x: kotlin.Long = ...)
VALUE_PARAMETER value-parameter x: kotlin.Long = ...
EXPRESSION_BODY
@@ -98,11 +98,11 @@ FILE /primitivesImplicitConversions.kt
EXPRESSION_BODY
GET_VAR 'value-parameter x: Long = ...' type=kotlin.Long origin=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Long
$this: VALUE_PARAMETER <receiver: TestImplicitArguments>
$this: VALUE_PARAMETER this@TestImplicitArguments: TestImplicitArguments
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-x>(): Long'
GET_FIELD 'x: Long' type=kotlin.Long origin=null
receiver: GET_VAR '<receiver: TestImplicitArguments>' type=TestImplicitArguments origin=null
receiver: GET_VAR 'this@TestImplicitArguments: TestImplicitArguments' type=TestImplicitArguments 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