diff --git a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt index 48bbf628a26..982be0573bd 100644 --- a/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt +++ b/compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/RawFirBuilder.kt @@ -837,7 +837,6 @@ open class RawFirBuilder( owner = this, containerTypeParameters, containingClassIsExpectClass, - body = null ) container.declarations += firPrimaryConstructor } @@ -852,7 +851,6 @@ open class RawFirBuilder( owner: KtClassOrObject, ownerTypeParameters: List, containingClassIsExpectClass: Boolean, - body: FirBlock? = null ): FirConstructor { val constructorCall = superTypeCallEntry?.toFirSourceElement() val constructorSource = this?.toFirSourceElement() @@ -897,7 +895,7 @@ open class RawFirBuilder( this.contextReceivers.addAll(convertContextReceivers(owner.contextReceivers)) this@toFirConstructor?.extractAnnotationsTo(this) this@toFirConstructor?.extractValueParametersTo(this, ValueParameterDeclaration.PRIMARY_CONSTRUCTOR) - this.body = body + this.body = null }.apply { containingClassForStaticMemberAttr = currentDispatchReceiverType()!!.lookupTag }