Skip to content

Commit

Permalink
- Relax patternm checks
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8867 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed May 8, 2011
1 parent c72de26 commit 29702b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Compiler/FrontEnd/Patternm.mo
Expand Up @@ -416,12 +416,14 @@ algorithm
str = Absyn.pathString(path) +& " missing pattern for fields: " +& str;
Error.addSourceMessage(Error.META_INVALID_PATTERN,{str},info);
then fail();
case (_,0,_,_,_) then ();
else then ();
/*
case (path,_,_,_,info)
equation
str = Absyn.pathString(path) +& " mixing positional and named patterns";
Error.addSourceMessage(Error.META_INVALID_PATTERN,{str},info);
then fail();
*/
end match;
end checkMissingArgs;

Expand Down

0 comments on commit 29702b7

Please sign in to comment.