diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt index 8d1efc11515..f1f330c543b 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt @@ -1029,7 +1029,7 @@ class Fir2IrVisitor( } is IrVariableSymbol -> { IrSetVariableImpl( - startOffset, endOffset, symbol.owner.type, symbol, variableAssignment.rValue.toIrExpression(), null + startOffset, endOffset, irBuiltIns.unitType, symbol, variableAssignment.rValue.toIrExpression(), null ) } else -> generateErrorCallExpression(startOffset, endOffset, calleeReference) diff --git a/compiler/testData/codegen/box/casts/functions/asFunKSmall.kt b/compiler/testData/codegen/box/casts/functions/asFunKSmall.kt index d1bd64ff458..94d2cffd936 100644 --- a/compiler/testData/codegen/box/casts/functions/asFunKSmall.kt +++ b/compiler/testData/codegen/box/casts/functions/asFunKSmall.kt @@ -1,7 +1,6 @@ // FIR inserts incorrect smart casts based on the cast in the // lambda. However, that cast can fail and the failure can be caught // by the inline function. -// IGNORE_BACKEND_FIR: JVM_IR // IGNORE_BACKEND: JS_IR // TODO: muted automatically, investigate should it be ran for JS or not // IGNORE_BACKEND: JS, NATIVE