Opened 10 years ago

Last modified 10 years ago

#3239 closed defect

Missing class modification — at Version 3

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

Description (last modified by Adrian Pop)

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
 extends Der;
 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 (3)

comment:1 by Adrian Pop, 10 years ago

Owner: changed from somebody to Adrian Pop
Status: newaccepted

comment:2 by Adrian Pop, 10 years ago

Cc: carlj@… leonardo@… added

comment:3 by Adrian Pop, 10 years ago

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