8fc16345e6
are generated as property initializer expressions and should not be repeated in primary constructor.
33 lines
1.7 KiB
Plaintext
Vendored
33 lines
1.7 KiB
Plaintext
Vendored
FILE /primaryConstructorWithSuperConstructorCall.kt
|
|
CLASS CLASS Base
|
|
CONSTRUCTOR public constructor Base()
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'constructor Any()'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='Base'
|
|
CLASS CLASS TestImplicitPrimaryConstructor
|
|
CONSTRUCTOR public constructor TestImplicitPrimaryConstructor()
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='TestImplicitPrimaryConstructor'
|
|
CLASS CLASS TestExplicitPrimaryConstructor
|
|
CONSTRUCTOR public constructor TestExplicitPrimaryConstructor()
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='TestExplicitPrimaryConstructor'
|
|
CLASS CLASS TestWithDelegatingConstructor
|
|
CONSTRUCTOR public constructor TestWithDelegatingConstructor(x: kotlin.Int, y: kotlin.Int)
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'constructor Base()'
|
|
INSTANCE_INITIALIZER_CALL classDescriptor='TestWithDelegatingConstructor'
|
|
PROPERTY public final val x: kotlin.Int
|
|
EXPRESSION_BODY
|
|
GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
|
PROPERTY public final val y: kotlin.Int
|
|
EXPRESSION_BODY
|
|
GET_VAR 'value-parameter y: Int' type=kotlin.Int operator=INITIALIZE_PROPERTY_FROM_PARAMETER
|
|
CONSTRUCTOR public constructor TestWithDelegatingConstructor(x: kotlin.Int)
|
|
BLOCK_BODY
|
|
DELEGATING_CONSTRUCTOR_CALL 'constructor TestWithDelegatingConstructor(Int, Int)'
|
|
x: GET_VAR 'value-parameter x: Int' type=kotlin.Int operator=null
|
|
y: CONST Int type=kotlin.Int value='0'
|