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 /dataClassMembers.kt
|
||||
CLASS CLASS Test
|
||||
$new: VALUE_PARAMETER <receiver: Test>
|
||||
$new: VALUE_PARAMETER this@Test: Test<T>
|
||||
TYPE_PARAMETER <T>
|
||||
CONSTRUCTOR public constructor Test<T>(x: T, y: kotlin.String = ...)
|
||||
VALUE_PARAMETER value-parameter x: T
|
||||
@@ -15,64 +15,64 @@ FILE /dataClassMembers.kt
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter x: T' type=T origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-x>(): T
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): T'
|
||||
GET_FIELD 'x: T' type=T origin=null
|
||||
receiver: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
receiver: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
PROPERTY public final val y: kotlin.String
|
||||
FIELD PROPERTY_BACKING_FIELD public final val y: kotlin.String
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN DEFAULT_PROPERTY_ACCESSOR public final fun <get-y>(): kotlin.String
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-y>(): String'
|
||||
GET_FIELD 'y: String' type=kotlin.String origin=null
|
||||
receiver: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
receiver: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component1(): T
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='component1(): T'
|
||||
CALL '<get-x>(): T' type=T origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
FUN GENERATED_DATA_CLASS_MEMBER public final operator fun component2(): kotlin.String
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='component2(): String'
|
||||
CALL '<get-y>(): String' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
FUN GENERATED_DATA_CLASS_MEMBER public final fun copy(x: T = ..., y: kotlin.String = ...): Test<T>
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
VALUE_PARAMETER value-parameter x: T = ...
|
||||
EXPRESSION_BODY
|
||||
CALL '<get-x>(): T' type=T origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
VALUE_PARAMETER value-parameter y: kotlin.String = ...
|
||||
EXPRESSION_BODY
|
||||
CALL '<get-y>(): String' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='copy(T = ..., String = ...): Test<T>'
|
||||
CALL 'constructor Test(T, String = ...)' type=Test<T> origin=null
|
||||
x: GET_VAR 'value-parameter x: T = ...' type=T origin=null
|
||||
y: GET_VAR 'value-parameter y: String = ...' type=kotlin.String origin=null
|
||||
FUN GENERATED_DATA_CLASS_MEMBER public open override fun toString(): kotlin.String
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='toString(): String'
|
||||
STRING_CONCATENATION type=kotlin.String
|
||||
CONST String type=kotlin.String value='Test('
|
||||
CONST String type=kotlin.String value='x='
|
||||
CALL '<get-x>(): T' type=T origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
CONST String type=kotlin.String value=', '
|
||||
CONST String type=kotlin.String value='y='
|
||||
CALL '<get-y>(): String' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
CONST String type=kotlin.String value=')'
|
||||
FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
BLOCK_BODY
|
||||
VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int
|
||||
CONST Int type=kotlin.Int value='0'
|
||||
@@ -80,7 +80,7 @@ FILE /dataClassMembers.kt
|
||||
BLOCK type=kotlin.Int origin=null
|
||||
VAR IR_TEMPORARY_VARIABLE val tmp1: T
|
||||
CALL '<get-x>(): T' type=T origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
WHEN type=kotlin.Int origin=null
|
||||
BRANCH
|
||||
if: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQ
|
||||
@@ -99,17 +99,17 @@ FILE /dataClassMembers.kt
|
||||
other: CONST Int type=kotlin.Int value='31'
|
||||
other: CALL 'hashCode(): Int' type=kotlin.Int origin=null
|
||||
$this: CALL '<get-y>(): String' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
RETURN type=kotlin.Nothing from='hashCode(): Int'
|
||||
GET_VAR 'tmp0_result: Int' type=kotlin.Int origin=null
|
||||
FUN GENERATED_DATA_CLASS_MEMBER public open override fun equals(other: kotlin.Any?): kotlin.Boolean
|
||||
$this: VALUE_PARAMETER <receiver: Test>
|
||||
$this: VALUE_PARAMETER this@Test: Test<T>
|
||||
VALUE_PARAMETER value-parameter other: kotlin.Any?
|
||||
BLOCK_BODY
|
||||
WHEN type=kotlin.Unit origin=null
|
||||
BRANCH
|
||||
if: CALL 'EQEQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EQEQEQ
|
||||
arg0: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
arg0: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
arg1: GET_VAR 'value-parameter other: Any?' type=kotlin.Any? origin=null
|
||||
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
|
||||
CONST Boolean type=kotlin.Boolean value='true'
|
||||
@@ -127,7 +127,7 @@ FILE /dataClassMembers.kt
|
||||
if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ
|
||||
arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EXCLEQ
|
||||
arg0: CALL '<get-x>(): T' type=T origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
arg1: CALL '<get-x>(): T' type=T origin=GET_PROPERTY
|
||||
$this: GET_VAR 'tmp0_other_with_cast: Test<T>' type=Test<T> origin=null
|
||||
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
|
||||
@@ -137,7 +137,7 @@ FILE /dataClassMembers.kt
|
||||
if: CALL 'NOT(Boolean): Boolean' type=kotlin.Boolean origin=EXCLEQ
|
||||
arg0: CALL 'EQEQ(Any?, Any?): Boolean' type=kotlin.Boolean origin=EXCLEQ
|
||||
arg0: CALL '<get-y>(): String' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR '<receiver: Test>' type=Test<T> origin=null
|
||||
$this: GET_VAR 'this@Test: Test<T>' type=Test<T> origin=null
|
||||
arg1: CALL '<get-y>(): String' type=kotlin.String origin=GET_PROPERTY
|
||||
$this: GET_VAR 'tmp0_other_with_cast: Test<T>' type=Test<T> origin=null
|
||||
then: RETURN type=kotlin.Nothing from='equals(Any?): Boolean'
|
||||
|
||||
Reference in New Issue
Block a user