Skip to content

Commit

Permalink
+ Allow instantiation of connectors deriving from records.
Browse files Browse the repository at this point in the history
+ Remove unnecessary error message. 

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15453 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
mahge committed Mar 3, 2013
1 parent c4d11c3 commit 0069830
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Compiler/FrontEnd/Inst.mo
Expand Up @@ -5016,7 +5016,7 @@ algorithm
// false = valueEq(re, SCode.R_FUNCTION());
false = valueEq(re, SCode.R_ENUMERATION());
false = valueEq(re, SCode.R_PREDEFINED_ENUMERATION());
false = SCode.isConnector(re);
// false = SCode.isConnector(re);
// check empty array dimensions
true = boolOr(valueEq(ad, NONE()), valueEq(ad, SOME({})));

Expand Down Expand Up @@ -18733,7 +18733,8 @@ algorithm

case(_, _, _)
equation
print("Inst.getRecordConstructorFunction failed for " +& Absyn.pathString(inPath) +& "\n");
true = Flags.isSet(Flags.FAILTRACE);
Debug.fprint(Flags.FAILTRACE, "Inst.getRecordConstructorFunction failed for " +& Absyn.pathString(inPath) +& "\n");
then
fail();

Expand Down
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Static.mo
Expand Up @@ -12895,8 +12895,8 @@ algorithm
outPath := match(inType1)
local
Absyn.Path path;
case (DAE.T_COMPLEX(ClassInf.RECORD(path),_, _,_)) then path;
case (DAE.T_ARRAY(DAE.T_COMPLEX(ClassInf.RECORD(path),_, _,_),_,_)) then path;
case (DAE.T_COMPLEX(ClassInf.RECORD(_),_, _,{path})) then path;
case (DAE.T_ARRAY(DAE.T_COMPLEX(ClassInf.RECORD(_),_, _,{path}),_,_)) then path;
else fail();
end match;

Expand Down

0 comments on commit 0069830

Please sign in to comment.