Properties declared in primary constructors should have proper accessors in IR.
This commit is contained in:
committed by
Dmitry Petrov
parent
5c720845a8
commit
201d2414bc
@@ -20,6 +20,11 @@ FILE /arrayAugmentedAssignment1.kt
|
||||
FIELD public final val x: kotlin.IntArray
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter x: IntArray' type=kotlin.IntArray operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-x>(): kotlin.IntArray
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-x>(): IntArray'
|
||||
GET_BACKING_FIELD 'x: IntArray' type=kotlin.IntArray operator=null
|
||||
receiver: THIS of 'C' type=C
|
||||
FUN public fun testVariable(): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
VAR var x: kotlin.IntArray
|
||||
|
||||
@@ -8,6 +8,16 @@ FILE /assignments.kt
|
||||
FIELD public final var 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 'Ref' type=Ref
|
||||
FUN public final fun <set-x>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
SET_BACKING_FIELD 'x: Int' type=kotlin.Unit operator=null
|
||||
receiver: THIS of 'Ref' type=Ref
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int operator=null
|
||||
FUN public fun test1(): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
VAR var x: kotlin.Int
|
||||
|
||||
@@ -130,6 +130,16 @@ FILE /complexAugmentedAssignment.kt
|
||||
FIELD public final var s: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter s: Int = ...' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-s>(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-s>(): Int'
|
||||
GET_BACKING_FIELD 's: Int' type=kotlin.Int operator=null
|
||||
receiver: THIS of 'B' type=B
|
||||
FUN public final fun <set-s>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
SET_BACKING_FIELD 's: Int' type=kotlin.Unit operator=null
|
||||
receiver: THIS of 'B' type=B
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int operator=null
|
||||
CLASS OBJECT Host
|
||||
CONSTRUCTOR private constructor Host()
|
||||
BLOCK_BODY
|
||||
|
||||
@@ -13,6 +13,16 @@ FILE /forWithImplicitReceivers.kt
|
||||
FIELD public final var value: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter value: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-value>(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-value>(): Int'
|
||||
GET_BACKING_FIELD 'value: Int' type=kotlin.Int operator=null
|
||||
receiver: THIS of 'IntCell' type=IntCell
|
||||
FUN public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
SET_BACKING_FIELD 'value: Int' type=kotlin.Unit operator=null
|
||||
receiver: THIS of 'IntCell' type=IntCell
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int operator=null
|
||||
CLASS INTERFACE IReceiver
|
||||
FUN public open operator fun FiveTimes.iterator(): IntCell
|
||||
BLOCK_BODY
|
||||
|
||||
@@ -8,6 +8,16 @@ FILE /safeCalls.kt
|
||||
FIELD public final var value: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
GET_VAR 'value-parameter value: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
FUN public final fun <get-value>(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='<get-value>(): Int'
|
||||
GET_BACKING_FIELD 'value: Int' type=kotlin.Int operator=null
|
||||
receiver: THIS of 'Ref' type=Ref
|
||||
FUN public final fun <set-value>(<set-?>: kotlin.Int): kotlin.Unit
|
||||
BLOCK_BODY
|
||||
SET_BACKING_FIELD 'value: Int' type=kotlin.Unit operator=null
|
||||
receiver: THIS of 'Ref' type=Ref
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int operator=null
|
||||
CLASS INTERFACE IHost
|
||||
FUN public open fun kotlin.String.extLength(): kotlin.Int
|
||||
BLOCK_BODY
|
||||
|
||||
Reference in New Issue
Block a user