[FIR] Fix FIR2IR Types on SetVariable Expressions
This commit is contained in:
committed by
Dmitry Petrov
parent
1e7f8ea037
commit
4f36e2ccfc
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user