Opened 10 years ago

Last modified 10 years ago

#3239 closed defect

Missing class modification — at Initial Version

Reported by: Adrian Pop Owned by: somebody
Priority: high Milestone: 1.9.3
Component: Frontend Version: trunk
Keywords: Cc: carlj@…, leonardo@…

Description

Flattening this:

connector RealInput = input Real;
connector RealOutput = output Real;
  
block PI
 parameter Real T(start = 1, min = -10000);
end PI;

block Der
 RealInput u;
 RealOutput y;
end Der;

model m1
 replaceable Der outBlock;
end m1;

model m2  
 extends m1(redeclare replaceable PI outBlock(T = 2.2));
end m2;

model m3  
 extends m2(outBlock(T = 5.0));
end m3;

should give:

class m3
  parameter Real outBlock.T(min = -10000.0, start = 1.0) = 5.0;
end m3;

but instead gives:

class m3
  parameter Real outBlock.T(min = -10000.0, start = 1.0) = 2.2;
end m3;

Change History (0)

Note: See TracTickets for help on using tickets.