Skip to content

Commit

Permalink
- Removed useless messages when typechecking overloaded operators.
Browse files Browse the repository at this point in the history
- Added support for code generation of complex types extending basic types.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@4575 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 25, 2009
1 parent 3e703b6 commit 36c7664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Compiler/Codegen.mo
Expand Up @@ -2040,6 +2040,7 @@ algorithm
t_str;

case ((DAE.T_COMPLEX(complexClassType = ClassInf.EXTERNAL_OBJ(_)),_)) then "modelica_complex";
case ((DAE.T_COMPLEX(ClassInf.TYPE(_),{},SOME(ty),_),_)) then generateSimpleType(ty);

case ((DAE.T_LIST(_),_)) then "metamodelica_type"; // MetaModelica list
case ((DAE.T_METATUPLE(_),_)) then "metamodelica_type"; // MetaModelica tuple
Expand Down
2 changes: 1 addition & 1 deletion Compiler/Static.mo
Expand Up @@ -11558,7 +11558,7 @@ algorithm
case ({},{}) then ({},{});
case ((pt :: pts),((arg,atype) :: args))
equation
(arg_1,atype_1) = Types.matchType(arg, atype, pt, true);
(arg_1,atype_1) = Types.matchType(arg, atype, pt, false);
(args_1,atypes_1) = elabArglist(pts, args);
then
((arg_1 :: args_1),(atype_1 :: atypes_1));
Expand Down

0 comments on commit 36c7664

Please sign in to comment.