Skip to content

Commit 44dd6b9

Browse files
committed
- Fixed some of the testcases (tries to simulate packages, instantiate functions)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11638 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent dc0a8fa commit 44dd6b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/Script/CevalScript.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ algorithm
13141314
(absynClass as Absyn.CLASS(restriction = restriction)) = Interactive.getPathedClassInProgram(className, p);
13151315
str = Absyn.pathString(className);
13161316
re = Absyn.restrString(restriction);
1317-
Error.assertionOrAddSourceMessage(not (Absyn.isFunctionRestriction(restriction) or Absyn.isPackageRestriction(restriction)),
1317+
Error.assertionOrAddSourceMessage(not (Absyn.isFunctionRestriction(restriction) /* or Absyn.isPackageRestriction(restriction) */ ),
13181318
Error.INST_INVALID_RESTRICTION,{str,re},Absyn.dummyInfo);
13191319
usedModels = Interactive.getUsesAnnotation(Absyn.PROGRAM({absynClass},Absyn.TOP(),Absyn.dummyTimeStamp));
13201320
_ = List.map3(usedModels, checkModelLoaded, p, false, SOME(str));

0 commit comments

Comments
 (0)