Skip to content

Commit 32ac96c

Browse files
committed
- Use a nominal type system for external objects git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9755 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent b34aab4 commit 32ac96c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Compiler/FrontEnd/Types.mo

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1435,8 +1435,12 @@ algorithm
14351435
then
14361436
true;
14371437

1438+
// External objects use a nominal type system
1439+
case ((DAE.T_COMPLEX(complexClassType = ClassInf.EXTERNAL_OBJ(p1)),_),(DAE.T_COMPLEX(complexClassType = ClassInf.EXTERNAL_OBJ(p2)),_))
1440+
then Absyn.pathEqual(p1,p2);
1441+
14381442
// Complex type
1439-
case ((DAE.T_COMPLEX(complexClassType = st1,complexVarLst = els1,complexTypeOption = bc1),_),(DAE.T_COMPLEX(complexClassType = st2,complexVarLst = els2,complexTypeOption = bc2),_))
1443+
case ((DAE.T_COMPLEX(complexClassType = st1,complexVarLst = els1,complexTypeOption = NONE()),_),(DAE.T_COMPLEX(complexClassType = st2,complexVarLst = els2,complexTypeOption = NONE()),_))
14401444
equation
14411445
true = subtypeVarlist(els1, els2);
14421446
then

0 commit comments

Comments
 (0)