diff --git a/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt b/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt index e5118fa984a..9df1f74b8a3 100644 --- a/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt +++ b/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt @@ -547,20 +547,20 @@ abstract class BaseFirBuilder(val baseSession: FirSession, val context: Conte resultInitializer ) - val assignment = unwrappedReceiver.generateAssignment( - desugaredSource, - null, - if (prefix && unwrappedReceiver.elementType != REFERENCE_EXPRESSION) - generateResolvedAccessExpression(source, resultVar) - else - resultInitializer, - FirOperation.ASSIGN, - resultInitializer.annotations, - null, - convert - ) - fun appendAssignment() { + val assignment = unwrappedReceiver.generateAssignment( + desugaredSource, + null, + if (prefix && unwrappedReceiver.elementType != REFERENCE_EXPRESSION) + generateResolvedAccessExpression(source, resultVar) + else + resultInitializer, + FirOperation.ASSIGN, + resultInitializer.annotations, + null, + convert + ) + if (assignment is FirBlock) { statements += assignment.statements } else {