Opened 16 years ago

Last modified 13 years ago

#1060 closed defect (fixed)

Check of protected variables is not made when using replaceable/redeclare (from MathCore)

Reported by: krsta Owned by: krsta
Priority: high Milestone:
Component: Version:
Keywords: Cc: krsta,

Description

model C2 below returns no error but the parameter r is protected and should not be possible ro redeclare in C2.

class C1
protected 
  replaceable parameter Real r=3.14;
end C1;

model C2
  replaceable parameter C1 x1(redeclare replaceable Integer r=3 );
end C2;

Change History (2)

comment:2 by Per Östlund, 14 years ago

Fixed in revision 8788, see test case redeclare/RedeclareVisibility2.

Note: See TracTickets for help on using tickets.