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:
committed by
Dmitry Petrov
parent
a9dbaca473
commit
8fc16345e6
@@ -8,9 +8,6 @@ FILE /forWithImplicitReceivers.kt
|
||||
CONSTRUCTOR public constructor IntCell(value: kotlin.Int)
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
||||
SET_BACKING_FIELD 'value: Int' type=kotlin.Unit operator=null
|
||||
receiver: THIS of 'IntCell' type=IntCell
|
||||
value: GET_VAR 'value-parameter value: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='IntCell'
|
||||
PROPERTY public final var value: kotlin.Int
|
||||
EXPRESSION_BODY
|
||||
|
||||
Reference in New Issue
Block a user