Skip to content

Commit

Permalink
[NF] Use correct variability for pre error.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2172
  • Loading branch information
perost authored and OpenModelica-Hudson committed Feb 7, 2018
1 parent 5cf25d1 commit df6431c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFCall.mo
Expand Up @@ -1214,7 +1214,7 @@ protected
if var > Variability.DISCRETE then
Error.addSourceMessageAndFail(Error.INVALID_ARGUMENT_VARIABILITY,
{"1", ComponentRef.toString(fn_ref), Prefixes.variabilityString(Variability.DISCRETE),
Expression.toString(arg), Prefixes.variabilityString(variability)}, info);
Expression.toString(arg), Prefixes.variabilityString(var)}, info);
end if;

{fn} := typeCachedFunctions(fn_ref);
Expand Down

0 comments on commit df6431c

Please sign in to comment.