Properties declared in primary constructors should have proper accessors in IR.
This commit is contained in:
committed by
Dmitry Petrov
parent
5c720845a8
commit
201d2414bc
+10
@@ -8,6 +8,16 @@ FILE /initVar.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 'TestInitVarFromParameter' type=TestInitVarFromParameter
|
||||
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 'TestInitVarFromParameter' type=TestInitVarFromParameter
|
||||
value: GET_VAR 'value-parameter <set-?>: Int' type=kotlin.Int operator=null
|
||||
CLASS CLASS TestInitVarInClass
|
||||
CONSTRUCTOR public constructor TestInitVarInClass()
|
||||
BLOCK_BODY
|
||||
|
||||
Reference in New Issue
Block a user