Skip to content

Commit

Permalink
- Changed the error message for public non-formal parameters in funct…
Browse files Browse the repository at this point in the history
…ions to be

  understandable without reading the specification.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9909 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Sep 23, 2011
1 parent c3a0e9e commit 923f0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Util/Error.mo
Expand Up @@ -823,7 +823,7 @@ protected constant list<tuple<Integer, MessageType, Severity, String>> errorTabl
(IMBALANCED_EQUATIONS,SYMBOLIC(),ERROR(),"An independent subset of the model has imbalanced number of equations (%s) and variables (%s).\nvariables:\n%s\nequations:\n%s"),
(EQUATIONS_VAR_NOT_DEFINED,SYMBOLIC(),ERROR(),"Variable %s is not referenced in any equation (possibly after symbolic manipulations)."),
(NON_FORMAL_PUBLIC_FUNCTION_VAR,TRANSLATION(),WARNING(),
"Invalid formal parameter %s, public components in functions must be either input or output."),
"Invalid public variable %s, function variables that are not input/output must be protected."),
(PROTECTED_FORMAL_FUNCTION_VAR,TRANSLATION(),ERROR(),
"Invalid protected formal parameter %s, formal arguments must be public."),
(FUNCTION_UNUSED_INPUT,SYMBOLIC(),WARNING(),"Unused input variable %s in function %s."),
Expand Down

0 comments on commit 923f0c0

Please sign in to comment.