Skip to content

Commit

Permalink
Fix for #2383:
Browse files Browse the repository at this point in the history
- Replaced class restriction with specialized class in error messages.
- Use pretty-printing of class specialization in ClassInf.assertValid.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17735 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Oct 17, 2013
1 parent 5224cb3 commit b19b90d
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 439 deletions.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/ClassInf.mo
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ algorithm
equation
str1 = Absyn.pathString(getStateName(st));
str2 = printStateStr(st);
str3 = SCodeDump.restrString(re);
str3 = SCodeDump.restrictionStringPP(re);
Error.addSourceMessage(Error.RESTRICTION_VIOLATION, {str1,str2,str3}, info);
then
fail();
Expand Down

0 comments on commit b19b90d

Please sign in to comment.