Opened 9 years ago

Closed 9 years ago

#3239 closed defect (fixed)

Missing class modification

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

Description (last modified by adrpo)

Flattening this:

connector RealInput = input Real;
connector RealOutput = output Real;
  
block PI
 extends Der;
 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 (5)

comment:1 Changed 9 years ago by adrpo

  • Owner changed from somebody to adrpo
  • Status changed from new to accepted

comment:2 Changed 9 years ago by adrpo

  • Cc carlj@… leonardo@… added

comment:3 Changed 9 years ago by adrpo

  • Description modified (diff)

comment:4 Changed 9 years ago by adrpo

  • Description modified (diff)

comment:5 Changed 9 years ago by adrpo

  • Milestone changed from Future to 1.9.3
  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in r25205.

Note: See TracTickets for help on using tickets.