Skip to content

Commit

Permalink
[NF] Handle SUBSCRIPTED_EXP in Typing.typeExp.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2566
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jul 5, 2018
1 parent 7f60f82 commit 52c826a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Compiler/NFFrontEnd/NFTyping.mo
Expand Up @@ -1061,6 +1061,10 @@ algorithm
then
(exp, ty, var1);

// Subscripted expressions are assumed to already be typed.
case Expression.SUBSCRIPTED_EXP()
then (exp, exp.ty, Expression.variability(exp));

else
algorithm
Error.assertion(false, getInstanceName() + " got unknown expression: " + Expression.toString(exp), sourceInfo());
Expand Down

0 comments on commit 52c826a

Please sign in to comment.