﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2343	Instantiatied extended models with records with constants have equations which could easily be simplified	carlj@…	somebody	"Consider the following model:

{{{
record MyRecord
  Real x;
  constant Real y = 0.5;
end MyRecord;

model BaseModel
  parameter MyRecord myData;
end BaseModel;

model ExtendsModel
  parameter MyRecord m(x = 1.27);
  extends BaseModel(myData = m);
end ExtendsModel;
}}}

which is instantiated to:


{{{
function MyRecord \""Automatically generated record constructor for MyRecord\""
  input Real x;
  protected Real y = 0.5;
  output MyRecord res;
end MyRecord;

class ExtendsModel
  parameter Real myData.x = m.x;
  constant Real myData.y = m.y;
  parameter Real m.x = 1.27;
  constant Real m.y = 0.5;
end ExtendsModel;
}}}

where the line ""constant Real myData.y = m.y"" seems like it could just as well be simplified to ""constant Real myData.y = 0.5""."	enhancement	closed	high	2.0.0	Frontend	trunk	worksforme		
