﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3051	extends and modification of attributes	Willi Braun	Adrian Pop	"The following model is motivated by some Modelica.Media models, which seems to have some issue with modification of the attributes like min, max, nominal and start.
The following script
{{{
loadString(""
package p
  package types
    type crazyT = Real(min=2, max=12, nominal=5, start=2.1);
  end types;
  package p1
    model A
      extends types;
    end A;
    model B
      extends A(crazyT(start=1.6));
    end B;
  end p1;
  model C
    p1.A.crazyT a;
    p1.B.crazyT b;
  equation
    der(a) = 0;
    der(b) = 0;
  end C;
end p;
"");
getErrorString();
instantiateModel(p.C);
getErrorString();
}}}
outputs:
{{{
""class p.C
  Real a(min = 2.0, max = 12.0, start = 2.1, nominal = 5.0);
  Real b(min = 2.0, max = 12.0, start = 2.1, nominal = 5.0);
equation
  der(a) = 0.0;
  der(b) = 0.0;
end p.C;
}}}

As far as I see the start attribute of a and b should be different, or did I miss something?
"	defect	closed	high	1.9.4	Frontend	trunk	fixed		Adrian Pop Rüdiger Franke dersh@…
