Opened 10 years ago

Closed 4 years ago

#2914 closed defect (fixed)

Redeclaration is not applied

Reported by: Martin Sjölund Owned by: Per Östlund
Priority: high Milestone: 1.16.0
Component: Frontend Version: trunk
Keywords: Cc:

Description

Redeclaration is not applied in the following example:

model M
  Real r;
end M;

model N
  extends M(redeclare parameter Real r = 3.0);
end N;

OpenModelica gives:

class N
  Real r;
end N;

Change History (1)

comment:1 by Per Östlund, 4 years ago

Milestone: Future1.16.0
Resolution: fixed
Status: newclosed

Both the old and the new frontend handles this correctly now.

Note: See TracTickets for help on using tickets.