Properties declared in primary constructors should have proper accessors in IR.

This commit is contained in:
Dmitry Petrov
2016-09-12 12:22:08 +03:00
committed by Dmitry Petrov
parent 5c720845a8
commit 201d2414bc
26 changed files with 649 additions and 121 deletions
+15
View File
@@ -13,6 +13,11 @@ FILE /sealedClasses.kt
FIELD public final val number: kotlin.Double
EXPRESSION_BODY
GET_VAR 'value-parameter number: Double' type=kotlin.Double operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public final fun <get-number>(): kotlin.Double
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-number>(): Double'
GET_BACKING_FIELD 'number: Double' type=kotlin.Double operator=null
receiver: THIS of 'Const' type=Expr.Const
CLASS CLASS Sum
CONSTRUCTOR public constructor Sum(e1: Expr, e2: Expr)
BLOCK_BODY
@@ -22,10 +27,20 @@ FILE /sealedClasses.kt
FIELD public final val e1: Expr
EXPRESSION_BODY
GET_VAR 'value-parameter e1: Expr' type=Expr operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public final fun <get-e1>(): Expr
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-e1>(): Expr'
GET_BACKING_FIELD 'e1: Expr' type=Expr operator=null
receiver: THIS of 'Sum' type=Expr.Sum
PROPERTY public final val e2: Expr
FIELD public final val e2: Expr
EXPRESSION_BODY
GET_VAR 'value-parameter e2: Expr' type=Expr operator=INITIALIZE_PROPERTY_FROM_PARAMETER
FUN public final fun <get-e2>(): Expr
BLOCK_BODY
RETURN type=kotlin.Nothing from='<get-e2>(): Expr'
GET_BACKING_FIELD 'e2: Expr' type=Expr operator=null
receiver: THIS of 'Sum' type=Expr.Sum
CLASS OBJECT NotANumber
CONSTRUCTOR private constructor NotANumber()
BLOCK_BODY