Properties declared in primary constructors should have proper accessors in IR.
This commit is contained in:
committed by
Dmitry Petrov
parent
5c720845a8
commit
201d2414bc
@@ -8,10 +8,20 @@ FILE /primaryConstructor.kt
|
||||
FIELD public final val x: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-x>(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): Int'
|
||||
GET_BACKING_FIELD 'x: Int' type=kotlin.Int operator=null
|
||||
receiver: THIS of 'Test1' type=Test1
|
||||
PROPERTY public final val y: kotlin.Int
|
||||
FIELD public final val y: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter y: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-y>(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-y>(): Int'
|
||||
GET_BACKING_FIELD 'y: Int' type=kotlin.Int operator=null
|
||||
receiver: THIS of 'Test1' type=Test1
|
||||
CLASS CLASS Test2
|
||||
CONSTRUCTOR public constructor Test2(x: kotlin.Int, y: kotlin.Int)
|
||||
BLOCK_BODY
|
||||
@@ -21,6 +31,11 @@ FILE /primaryConstructor.kt
|
||||
FIELD public final val y: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter y: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-y>(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-y>(): Int'
|
||||
GET_BACKING_FIELD 'y: Int' type=kotlin.Int operator=null
|
||||
receiver: THIS of 'Test2' type=Test2
|
||||
PROPERTY public final val x: kotlin.Int
|
||||
FIELD public final val x: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
@@ -39,6 +54,11 @@ FILE /primaryConstructor.kt
|
||||
FIELD public final val y: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter y: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-y>(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-y>(): Int'
|
||||
GET_BACKING_FIELD 'y: Int' type=kotlin.Int operator=null
|
||||
receiver: THIS of 'Test3' type=Test3
|
||||
PROPERTY public final val x: kotlin.Int
|
||||
FIELD public final val x: kotlin.Int
|
||||
FUN public final fun <get-x>(): kotlin.Int
|
||||
|
||||
Reference in New Issue
Block a user