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
@@ -2,21 +2,21 @@ FILE /delegatedMembers.kt
CLASS INTERFACE IBase
TYPE_PARAMETER <T>
FUN public abstract fun foo(x: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: IBase>
$this: VALUE_PARAMETER this@IBase: IBase<T>
VALUE_PARAMETER value-parameter x: kotlin.Int
PROPERTY public abstract val bar: kotlin.Int
FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IBase>
$this: VALUE_PARAMETER this@IBase: IBase<T>
FUN public abstract fun <X> qux(t: T, x: X): kotlin.Unit
TYPE_PARAMETER <X>
$this: VALUE_PARAMETER <receiver: IBase>
$this: VALUE_PARAMETER this@IBase: IBase<T>
VALUE_PARAMETER value-parameter t: T
VALUE_PARAMETER value-parameter x: X
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 Test
$new: VALUE_PARAMETER <receiver: Test>
$new: VALUE_PARAMETER this@Test: Test<TT>
TYPE_PARAMETER <TT>
CONSTRUCTOR public constructor Test<TT>(impl: IBase<TT>)
VALUE_PARAMETER value-parameter impl: IBase<TT>
@@ -28,32 +28,32 @@ FILE /delegatedMembers.kt
GET_VAR 'value-parameter impl: IBase<TT>' type=IBase<TT> origin=null
FUN DELEGATED_MEMBER public open override fun <X> qux(t: TT, x: X): kotlin.Unit
TYPE_PARAMETER <X>
$this: VALUE_PARAMETER <receiver: Test>
$this: VALUE_PARAMETER this@Test: Test<TT>
VALUE_PARAMETER value-parameter t: TT
VALUE_PARAMETER value-parameter x: X
BLOCK_BODY
CALL 'qux(TT, X): Unit' type=kotlin.Unit origin=null
$this: GET_FIELD '`Test$IBase$delegate`: IBase<TT>' type=IBase<TT> origin=null
receiver: GET_VAR '<receiver: Test>' type=Test<TT> origin=null
receiver: GET_VAR 'this@Test: Test<TT>' type=Test<TT> origin=null
t: GET_VAR 'value-parameter t: TT' type=TT origin=null
x: TYPE_OP type=X origin=IMPLICIT_CAST typeOperand=X
GET_VAR 'value-parameter x: X' type=X origin=null
FUN DELEGATED_MEMBER public open override fun foo(x: kotlin.Int): kotlin.Unit
$this: VALUE_PARAMETER <receiver: Test>
$this: VALUE_PARAMETER this@Test: Test<TT>
VALUE_PARAMETER value-parameter x: kotlin.Int
BLOCK_BODY
CALL 'foo(Int): Unit' type=kotlin.Unit origin=null
$this: GET_FIELD '`Test$IBase$delegate`: IBase<TT>' type=IBase<TT> origin=null
receiver: GET_VAR '<receiver: Test>' type=Test<TT> origin=null
receiver: GET_VAR 'this@Test: Test<TT>' type=Test<TT> origin=null
x: GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=null
PROPERTY DELEGATED_MEMBER public open override val bar: kotlin.Int
FUN DELEGATED_MEMBER public open override fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Test>
$this: VALUE_PARAMETER this@Test: Test<TT>
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): Int'
CALL '<get-bar>(): Int' type=kotlin.Int origin=null
$this: GET_FIELD '`Test$IBase$delegate`: IBase<TT>' type=IBase<TT> origin=null
receiver: GET_VAR '<receiver: Test>' type=Test<TT> origin=null
receiver: GET_VAR 'this@Test: Test<TT>' type=Test<TT> 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