﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1909	Propagate redeclares correctly	Per Östlund	Per Östlund	"The new instantiation has issues when it comes to propagating redeclares, because it tries to fully qualify redeclares instead of looking them up in the correct environment. This means that models such as this doesn't work:
{{{
model A
  replaceable package Medium = PartialMedium;
  Medium.BaseProperties medium;
end A;

model B
  A a(redeclare package Medium = Medium);
  replaceable package Medium = PartialMedium;
end B;

model C
  B b(redeclare package Medium = NonPartialMedium);
end C;
}}}
In this case it will use the old declaration of B.Medium when applying the redeclare to a. We need to look up B.Medium so that we get the redeclared declaration."	defect	closed	high	1.9.4	New Instantiation	trunk	fixed		
