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
+7 -7
View File
@@ -1,7 +1,7 @@
FILE /fakeOverrides.kt
CLASS INTERFACE IFooStr
FUN public abstract fun foo(x: kotlin.String): kotlin.Unit
$this: VALUE_PARAMETER <receiver: IFooStr>
$this: VALUE_PARAMETER this@IFooStr: IFooStr
VALUE_PARAMETER value-parameter x: kotlin.String
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
@@ -9,26 +9,26 @@ FILE /fakeOverrides.kt
CLASS INTERFACE IBar
PROPERTY public abstract val bar: kotlin.Int
FUN DEFAULT_PROPERTY_ACCESSOR public abstract fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: IBar>
$this: VALUE_PARAMETER this@IBar: IBar
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 CFoo
$new: VALUE_PARAMETER <receiver: CFoo>
$new: VALUE_PARAMETER this@CFoo: CFoo<T>
TYPE_PARAMETER <T>
CONSTRUCTOR public constructor CFoo<T>()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
INSTANCE_INITIALIZER_CALL classDescriptor='CFoo'
FUN public final fun foo(x: T): kotlin.Unit
$this: VALUE_PARAMETER <receiver: CFoo>
$this: VALUE_PARAMETER this@CFoo: CFoo<T>
VALUE_PARAMETER value-parameter x: T
BLOCK_BODY
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 Test1
$new: VALUE_PARAMETER <receiver: Test1>
$new: VALUE_PARAMETER this@Test1: Test1
CONSTRUCTOR public constructor Test1()
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor CFoo()'
@@ -39,11 +39,11 @@ FILE /fakeOverrides.kt
EXPRESSION_BODY
CONST Int type=kotlin.Int value='42'
FUN DEFAULT_PROPERTY_ACCESSOR public open override fun <get-bar>(): kotlin.Int
$this: VALUE_PARAMETER <receiver: Test1>
$this: VALUE_PARAMETER this@Test1: Test1
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-bar>(): Int'
GET_FIELD 'bar: Int' type=kotlin.Int origin=null
receiver: GET_VAR '<receiver: Test1>' type=Test1 origin=null
receiver: GET_VAR 'this@Test1: Test1' type=Test1 origin=null
FUN FAKE_OVERRIDE public final override fun foo(x: kotlin.String): kotlin.Unit
FUN FAKE_OVERRIDE public open override fun equals(other: kotlin.Any?): kotlin.Boolean
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int