Skip to content

Commit b21fd2b

Browse files
authored
[NF] do not fail on unknown expression. rather just return type (OpenModelica#13852)
1 parent fbfa0ae commit b21fd2b

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

OMCompiler/Compiler/NFFrontEnd/NFTyping.mo

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,17 +1447,7 @@ algorithm
14471447

14481448
case Expression.MULTARY() then typeExp(SimplifyExp.splitMultary(exp), context, info, retype);
14491449

1450-
case Expression.CLKCONST() then (exp, Expression.typeOf(exp), Expression.variability(exp), Expression.purity(exp));
1451-
1452-
// maybe need to retype the body of these?
1453-
case Expression.TUPLE_ELEMENT() then (exp, Expression.typeOf(exp), Expression.variability(exp), Expression.purity(exp));
1454-
case Expression.RECORD_ELEMENT() then (exp, Expression.typeOf(exp), Expression.variability(exp), Expression.purity(exp));
1455-
1456-
else
1457-
algorithm
1458-
Error.assertion(false, getInstanceName() + " got unknown expression: " + Expression.toString(exp), sourceInfo());
1459-
then
1460-
fail();
1450+
else (exp, Expression.typeOf(exp), Expression.variability(exp), Expression.purity(exp));
14611451

14621452
end match;
14631453

0 commit comments

Comments
 (0)