Property initializers from primary constructor parameters

are generated as property initializer expressions
and should not be repeated in primary constructor.
This commit is contained in:
Dmitry Petrov
2016-09-06 15:48:36 +03:00
committed by Dmitry Petrov
parent a9dbaca473
commit 8fc16345e6
17 changed files with 0 additions and 110 deletions
-9
View File
@@ -8,9 +8,6 @@ FILE /sealedClasses.kt
CONSTRUCTOR public constructor Const(number: kotlin.Double)
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()'
SET_BACKING_FIELD 'number: Double' type=kotlin.Unit operator=null
receiver: THIS of 'Const' type=Expr.Const
value: GET_VAR 'value-parameter number: Double' type=kotlin.Double operator=INITIALIZE_PROPERTY_FROM_PARAMETER
INSTANCE_INITIALIZER_CALL classDescriptor='Const'
PROPERTY public final val number: kotlin.Double
EXPRESSION_BODY
@@ -19,12 +16,6 @@ FILE /sealedClasses.kt
CONSTRUCTOR public constructor Sum(e1: Expr, e2: Expr)
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'constructor Expr()'
SET_BACKING_FIELD 'e1: Expr' type=kotlin.Unit operator=null
receiver: THIS of 'Sum' type=Expr.Sum
value: GET_VAR 'value-parameter e1: Expr' type=Expr operator=INITIALIZE_PROPERTY_FROM_PARAMETER
SET_BACKING_FIELD 'e2: Expr' type=kotlin.Unit operator=null
receiver: THIS of 'Sum' type=Expr.Sum
value: GET_VAR 'value-parameter e2: Expr' type=Expr operator=INITIALIZE_PROPERTY_FROM_PARAMETER
INSTANCE_INITIALIZER_CALL classDescriptor='Sum'
PROPERTY public final val e1: Expr
EXPRESSION_BODY