Skip to content

Commit

Permalink
- Fixed some of the testcases (tries to simulate packages, instantiat…
Browse files Browse the repository at this point in the history
…e functions)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11638 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Apr 2, 2012
1 parent dc0a8fa commit 44dd6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Script/CevalScript.mo
Expand Up @@ -1314,7 +1314,7 @@ algorithm
(absynClass as Absyn.CLASS(restriction = restriction)) = Interactive.getPathedClassInProgram(className, p);
str = Absyn.pathString(className);
re = Absyn.restrString(restriction);
Error.assertionOrAddSourceMessage(not (Absyn.isFunctionRestriction(restriction) or Absyn.isPackageRestriction(restriction)),
Error.assertionOrAddSourceMessage(not (Absyn.isFunctionRestriction(restriction) /* or Absyn.isPackageRestriction(restriction) */ ),
Error.INST_INVALID_RESTRICTION,{str,re},Absyn.dummyInfo);
usedModels = Interactive.getUsesAnnotation(Absyn.PROGRAM({absynClass},Absyn.TOP(),Absyn.dummyTimeStamp));
_ = List.map3(usedModels, checkModelLoaded, p, false, SOME(str));
Expand Down

0 comments on commit 44dd6b9

Please sign in to comment.