Put 'thisReceiver' declaration in class
Interfaces also have 'thisReceiver'
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
FILE /multipleThisReferences.kt
|
||||
CLASS CLASS Outer
|
||||
$this: VALUE_PARAMETER this@Outer: Outer
|
||||
CONSTRUCTOR public constructor Outer()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Outer'
|
||||
CLASS CLASS Inner
|
||||
$this: VALUE_PARAMETER this@Inner: Inner
|
||||
CONSTRUCTOR public constructor Inner(x: kotlin.Int)
|
||||
$outer: VALUE_PARAMETER this@Outer: Outer
|
||||
VALUE_PARAMETER value-parameter x: kotlin.Int
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Inner'
|
||||
PROPERTY public final val x: kotlin.Int
|
||||
FIELD PROPERTY_BACKING_FIELD public final val x: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter x: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER this@Inner: Inner
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_FIELD 'x: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR 'this@Inner: Inner' type=Outer.Inner 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
|
||||
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 Host
|
||||
$this: VALUE_PARAMETER this@Host: Host
|
||||
CONSTRUCTOR public constructor Host(y: kotlin.Int)
|
||||
VALUE_PARAMETER value-parameter y: kotlin.Int
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
|
||||
PROPERTY public final val y: kotlin.Int
|
||||
FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter y: Int' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-y>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER this@Host: Host
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-y>(): Int'
|
||||
GET_FIELD 'y: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR 'this@Host: Host' type=Host origin=null
|
||||
FUN public final fun Outer.test(): Outer.Inner
|
||||
$this: VALUE_PARAMETER this@Host: Host
|
||||
$receiver: VALUE_PARAMETER this@test: Outer
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='test() on Outer: Outer.Inner'
|
||||
BLOCK type=Host.test.<no name provided> origin=OBJECT_LITERAL
|
||||
CLASS CLASS <no name provided>
|
||||
$this: VALUE_PARAMETER this@<no name provided>: <no name provided>
|
||||
CONSTRUCTOR public constructor <no name provided>()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Inner(Int)'
|
||||
$this: GET_VAR 'this@test: Outer' type=Outer origin=null
|
||||
x: CONST Int type=kotlin.Int value='42'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='<no name provided>'
|
||||
PROPERTY public final val xx: kotlin.Int
|
||||
FIELD PROPERTY_BACKING_FIELD public final val xx: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
CALL 'plus(Int): Int' type=kotlin.Int origin=PLUS
|
||||
$this: CALL '<get-x>(): Int' type=kotlin.Int origin=GET_PROPERTY
|
||||
$this: GET_VAR 'this@<no name provided>: <no name provided>' type=Host.test.<no name provided> origin=null
|
||||
other: CALL '<get-y>(): Int' type=kotlin.Int origin=GET_PROPERTY
|
||||
$this: GET_VAR 'this@Host: Host' type=Host origin=null
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-xx>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER this@<no name provided>: <no name provided>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-xx>(): Int'
|
||||
GET_FIELD 'xx: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR 'this@<no name provided>: <no name provided>' type=Host.test.<no name provided> origin=null
|
||||
PROPERTY FAKE_OVERRIDE public final override val x: kotlin.Int
|
||||
FUN FAKE_OVERRIDE public final override fun <get-x>(): kotlin.Int
|
||||
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
|
||||
CALL 'constructor <no name provided>()' type=Host.test.<no name provided> origin=OBJECT_LITERAL
|
||||
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
|
||||
Reference in New Issue
Block a user