#3255 closed defect (fixed)
getComponentAnnotations should merge the constrainedby annotation with the component annotation
Reported by: | Adeel Asghar | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | Parser | Version: | trunk |
Keywords: | Cc: | Martin Sjölund |
Description
getComponentAnnotations
returns empty annotation for the component if constrainedby
is used.
Attachments (2)
Change History (10)
by , 10 years ago
by , 10 years ago
comment:1 by , 10 years ago
Cc: | added |
---|---|
Component: | Interactive Environment → Parser |
comment:2 by , 10 years ago
Seems that Modelica allows you to write:
replaceable T1 a[2] annotation(1), b[3] annotation(2), c[4] annotation(3) constrainedby T2 annotation(4);
which is a bit weird as constrainedby T2 should be applied to all the components.
Version 0, edited 10 years ago by (next)
comment:4 by , 10 years ago
Summary: | getComponentAnnotations fails when constrainedby is used → getComponentAnnotations should merge the constrainedby annotation with the component annotation |
---|
comment:5 by , 10 years ago
This ticket might also apply for short class definitions:
redeclare T = T1 annotation(1) constrainedby T2 annotation(2);
comment:6 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r25478 for components. Reopen if we need it also for short class definitions.
comment:7 by , 9 years ago
Milestone: | Future → pre1.9.4 |
---|
It doesn't make sense to keep closed ticket in the "Future" milestone that were simply forgotten to assign to the correct milestone in the past.
comment:8 by , 7 years ago
Milestone: | pre1.9.4 → 1.9.4 |
---|
Removing the pre1.9.4 milestone in favor of 1.9.4.
Note:
See TracTickets
for help on using tickets.
Hmm, there seems to be an issue with the way we parse Modelica grammar here:
Seems that the annotation end up as the comment for the constrainedby clause.