Properties declared in primary constructors should have proper accessors in IR.
This commit is contained in:
committed by
Dmitry Petrov
parent
5c720845a8
commit
201d2414bc
@@ -16,6 +16,11 @@ FILE /initBlock.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 'Test2' type=Test2
|
||||
ANONYMOUS_INITIALIZER Test2
|
||||
BLOCK_BODY
|
||||
CALL 'println(): Unit' type=kotlin.Unit operator=null
|
||||
|
||||
Reference in New Issue
Block a user