Opened 12 years ago

Last modified 7 years ago

#1936 closed defect

Final and redeclare do not work well together — at Initial Version

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: 2.0.0
Component: New Instantiation Version: trunk
Keywords: Cc:

Description

Final and redeclare do not work well together, this model should work:

record N0
  replaceable Real x,y;
end N0;

record N = N0(redeclare Real x(start=1), redeclare Real y(start=2));

model O
  N n;
  annotation(uses(Modelica(version="3.2")));
end O;

model M
  extends O(final n(x=1.5,y=2.5));
  annotation(uses(Modelica(version="3.2")));
end M;

Change History (0)

Note: See TracTickets for help on using tickets.