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

Commit

Permalink
Handle "()" for __OpenModelica_simulationFlags.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2484
  • Loading branch information
perost authored and OpenModelica-Hudson committed May 31, 2018
1 parent c3468c0 commit 2fffc20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -4994,7 +4994,11 @@ algorithm

case Absyn.ElementArg.MODIFICATION(modification =
SOME(Absyn.Modification.CLASSMOD(eqMod = Absyn.EqMod.EQMOD(exp = exp))))
then Absyn.pathString(arg.path) + "=" + Dump.printExpStr(exp);
then
match exp
case Absyn.STRING("()") then Absyn.pathString(arg.path);
else Absyn.pathString(arg.path) + "=" + Dump.printExpStr(exp);
end match;

case Absyn.ElementArg.MODIFICATION()
then Absyn.pathString(arg.path);
Expand Down

0 comments on commit 2fffc20

Please sign in to comment.