#3480 closed defect (fixed)
Connectors inside top level connector should be a top level connectors too
Reported by: | Maksimov Doe | Owned by: | Maksimov Doe |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Frontend | Version: | |
Keywords: | Cc: |
Description
In following example connectors conn1 and conn1.conn2 both should be outside connectors for model Ex.
model Ex connector Conn1 input Integer foo; connector Conn2 input Integer foo; end Conn2; Conn2 conn2; end Conn1; Conn1 conn1; end Ex;
But currently only conn1 is marked as outside:
class Ex input Integer conn1.foo; Integer conn1.conn2.foo; end Ex;
Change History (7)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 9 years ago
Summary: | Connector inside Outside connector should be an Outside connector too → Connectors inside top level connector should be a top level connectors too |
---|
comment:4 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in e02e8c9/OMCompiler.
Test added in 49a754d/OpenModelica-testsuite.
comment:5 by , 9 years ago
Milestone: | Future → 1.9.4 |
---|
Sorting these closed tickets away from "Future". Since they were closed after the last 1.9.3 release, it's very likely that they should have been part of the 1.9.4 release.
Note:
See TracTickets
for help on using tickets.
I have found that problem is function InstVar.stripVarAttrDirection which strips nested connectors directions. It should use ConnectUtil.componentFaceType to detect top level inputs/outputs. Same for function CheckMode.topLevelInput.