Skip to content

Commit 35cfbbe

Browse files
author
Kristoffer Andersen
authored
Merge pull request #1 from kandersen/fir-assert-fix
[FIR] Fix FIR2IR Types on SetVariable Expressions
2 parents 1f844af + ed775e1 commit 35cfbbe

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ class Fir2IrVisitor(
10291029
}
10301030
is IrVariableSymbol -> {
10311031
IrSetVariableImpl(
1032-
startOffset, endOffset, symbol.owner.type, symbol, variableAssignment.rValue.toIrExpression(), null
1032+
startOffset, endOffset, irBuiltIns.unitType, symbol, variableAssignment.rValue.toIrExpression(), null
10331033
)
10341034
}
10351035
else -> generateErrorCallExpression(startOffset, endOffset, calleeReference)

compiler/testData/codegen/box/casts/functions/asFunKSmall.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// FIR inserts incorrect smart casts based on the cast in the
22
// lambda. However, that cast can fail and the failure can be caught
33
// by the inline function.
4-
// IGNORE_BACKEND_FIR: JVM_IR
54
// IGNORE_BACKEND: JS_IR
65
// TODO: muted automatically, investigate should it be ran for JS or not
76
// IGNORE_BACKEND: JS, NATIVE

compiler/testData/codegen/box/javaInterop/notNullAssertions/paramAssertionMessage.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// IGNORE_BACKEND_FIR: JVM_IR
21
// TARGET_BACKEND: JVM
32
// FILE: Test.java
43

0 commit comments

Comments
 (0)