Skip to content
This repository has been archived by the owner on May 18, 2019. It is now read-only.

Commit

Permalink
[NF] Add case for MUTABLE in Typing.typeExp.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2877
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jan 15, 2019
1 parent 5e47a15 commit 1f99d4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Compiler/NFFrontEnd/NFTyping.mo
Expand Up @@ -1105,6 +1105,14 @@ algorithm
case Expression.SUBSCRIPTED_EXP()
then (exp, exp.ty, Expression.variability(exp));

case Expression.MUTABLE()
algorithm
e1 := Mutable.access(exp.exp);
(e1, ty, variability) := typeExp(e1, origin, info);
exp.exp := Mutable.create(e1);
then
(exp, ty, variability);

case Expression.PARTIAL_FUNCTION_APPLICATION()
then Function.typePartialApplication(exp, origin, info);

Expand Down

0 comments on commit 1f99d4a

Please sign in to comment.