[FIR] Fix FIR2IR Types on SetVariable Expressions

This commit is contained in:
Kristoffer Andersen
2020-02-14 11:09:12 +01:00
committed by Dmitry Petrov
parent 1e7f8ea037
commit 4f36e2ccfc
2 changed files with 1 additions and 2 deletions
@@ -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)