Opened 12 years ago

Last modified 7 years ago

#1936 closed defect

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

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

Description (last modified by Martin Sjölund)

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;
end O;

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

Change History (1)

comment:1 by Martin Sjölund, 12 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.