Render receivers as 'this@owner: type'
Add test for generic inner class with generic outer class.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
FILE /complexAugmentedAssignment.kt
|
||||
CLASS OBJECT X1
|
||||
$new: VALUE_PARAMETER <receiver: X1>
|
||||
$new: VALUE_PARAMETER this@X1: X1
|
||||
CONSTRUCTOR private constructor X1()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
@@ -10,20 +10,20 @@ FILE /complexAugmentedAssignment.kt
|
||||
EXPRESSION_BODY
|
||||
CONST Int type=kotlin.Int value='0'
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x1>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: X1>
|
||||
$this: VALUE_PARAMETER this@X1: X1
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x1>(): Int'
|
||||
GET_FIELD 'x1: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
|
||||
receiver: GET_VAR 'this@X1: X1' type=X1 origin=null
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x1>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: X1>
|
||||
$this: VALUE_PARAMETER this@X1: X1
|
||||
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
|
||||
BLOCK_BODY
|
||||
SET_FIELD 'x1: Int' type=kotlin.Unit origin=null
|
||||
receiver: GET_VAR '<receiver: X1>' type=X1 origin=null
|
||||
receiver: GET_VAR 'this@X1: X1' type=X1 origin=null
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
|
||||
CLASS OBJECT X2
|
||||
$new: VALUE_PARAMETER <receiver: X2>
|
||||
$new: VALUE_PARAMETER this@X2: X2
|
||||
CONSTRUCTOR private constructor X2()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
@@ -33,20 +33,20 @@ FILE /complexAugmentedAssignment.kt
|
||||
EXPRESSION_BODY
|
||||
CONST Int type=kotlin.Int value='0'
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x2>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: X2>
|
||||
$this: VALUE_PARAMETER this@X2: X2
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x2>(): Int'
|
||||
GET_FIELD 'x2: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
|
||||
receiver: GET_VAR 'this@X2: X2' type=X1.X2 origin=null
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x2>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: X2>
|
||||
$this: VALUE_PARAMETER this@X2: X2
|
||||
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
|
||||
BLOCK_BODY
|
||||
SET_FIELD 'x2: Int' type=kotlin.Unit origin=null
|
||||
receiver: GET_VAR '<receiver: X2>' type=X1.X2 origin=null
|
||||
receiver: GET_VAR 'this@X2: X2' type=X1.X2 origin=null
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int origin=null
|
||||
CLASS OBJECT X3
|
||||
$new: VALUE_PARAMETER <receiver: X3>
|
||||
$new: VALUE_PARAMETER this@X3: X3
|
||||
CONSTRUCTOR private constructor X3()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
@@ -56,17 +56,17 @@ FILE /complexAugmentedAssignment.kt
|
||||
EXPRESSION_BODY
|
||||
CONST Int type=kotlin.Int value='0'
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x3>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: X3>
|
||||
$this: VALUE_PARAMETER this@X3: X3
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x3>(): Int'
|
||||
GET_FIELD 'x3: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
|
||||
receiver: GET_VAR 'this@X3: X3' type=X1.X2.X3 origin=null
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-x3>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: X3>
|
||||
$this: VALUE_PARAMETER this@X3: X3
|
||||
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
|
||||
BLOCK_BODY
|
||||
SET_FIELD 'x3: Int' type=kotlin.Unit origin=null
|
||||
receiver: GET_VAR '<receiver: X3>' type=X1.X2.X3 origin=null
|
||||
receiver: GET_VAR 'this@X3: X3' type=X1.X2.X3 origin=null
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int 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
|
||||
@@ -146,7 +146,7 @@ FILE /complexAugmentedAssignment.kt
|
||||
$this: GET_VAR 'tmp5: Int' type=kotlin.Int origin=null
|
||||
GET_VAR 'tmp5: Int' type=kotlin.Int origin=null
|
||||
CLASS CLASS B
|
||||
$new: VALUE_PARAMETER <receiver: B>
|
||||
$new: VALUE_PARAMETER this@B: B
|
||||
CONSTRUCTOR public constructor B(s: kotlin.Int = ...)
|
||||
VALUE_PARAMETER value-parameter s: kotlin.Int = ...
|
||||
EXPRESSION_BODY
|
||||
@@ -159,35 +159,35 @@ FILE /complexAugmentedAssignment.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter s: Int = ...' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-s>(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: B>
|
||||
$this: VALUE_PARAMETER this@B: B
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-s>(): Int'
|
||||
GET_FIELD 's: Int' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR '<receiver: B>' type=B origin=null
|
||||
receiver: GET_VAR 'this@B: B' type=B origin=null
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <set-s>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: B>
|
||||
$this: VALUE_PARAMETER this@B: B
|
||||
VALUE_PARAMETER value-parameter <set-?>: kotlin.Int
|
||||
BLOCK_BODY
|
||||
SET_FIELD 's: Int' type=kotlin.Unit origin=null
|
||||
receiver: GET_VAR '<receiver: B>' type=B origin=null
|
||||
receiver: GET_VAR 'this@B: B' type=B origin=null
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int 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 OBJECT Host
|
||||
$new: VALUE_PARAMETER <receiver: Host>
|
||||
$new: VALUE_PARAMETER this@Host: Host
|
||||
CONSTRUCTOR private constructor Host()
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='Host'
|
||||
FUN public final operator fun B.plusAssign(b: B): kotlin.Unit
|
||||
$this: VALUE_PARAMETER <receiver: Host>
|
||||
$receiver: VALUE_PARAMETER <receiver: plusAssign(B) on B: Unit>
|
||||
$this: VALUE_PARAMETER this@Host: Host
|
||||
$receiver: VALUE_PARAMETER this@plusAssign: B
|
||||
VALUE_PARAMETER value-parameter b: B
|
||||
BLOCK_BODY
|
||||
BLOCK type=kotlin.Unit origin=PLUSEQ
|
||||
VAR IR_TEMPORARY_VARIABLE val tmp0_this: B
|
||||
GET_VAR '<receiver: plusAssign(B) on B: Unit>' type=B origin=null
|
||||
GET_VAR 'this@plusAssign: B' type=B origin=null
|
||||
CALL '<set-s>(Int): Unit' type=kotlin.Unit origin=PLUSEQ
|
||||
$this: GET_VAR 'tmp0_this: B' type=B origin=null
|
||||
<set-?>: CALL 'plus(Int): Int' type=kotlin.Int origin=PLUSEQ
|
||||
@@ -199,11 +199,11 @@ FILE /complexAugmentedAssignment.kt
|
||||
FUN FAKE_OVERRIDE public open override fun hashCode(): kotlin.Int
|
||||
FUN FAKE_OVERRIDE public open override fun toString(): kotlin.String
|
||||
FUN public fun Host.test3(v: B): kotlin.Unit
|
||||
$receiver: VALUE_PARAMETER <receiver: test3(B) on Host: Unit>
|
||||
$receiver: VALUE_PARAMETER this@test3: Host
|
||||
VALUE_PARAMETER value-parameter v: B
|
||||
BLOCK_BODY
|
||||
CALL 'plusAssign(B) on B: Unit' type=kotlin.Unit origin=PLUSEQ
|
||||
$this: GET_VAR '<receiver: test3(B) on Host: Unit>' type=Host origin=null
|
||||
$this: GET_VAR 'this@test3: Host' type=Host origin=null
|
||||
$receiver: GET_VAR 'value-parameter v: B' type=B origin=PLUSEQ
|
||||
b: CALL 'constructor B(Int = ...)' type=B origin=null
|
||||
s: CONST Int type=kotlin.Int value='1000'
|
||||
|
||||
Reference in New Issue
Block a user