﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1660	Redeclare of package causes lookup of package constant to fail	Per Östlund	Per Östlund	"This model doesn't work:
{{{
model C
  replaceable package P = P1;
  Real z = P.x;
end C;

package P1
  constant Real x = 1;
end P1;

package P2
  constant Real x = 2;
end P2;

model D
  C b(redeclare package P = P2);
end D;
}}}
The compiler gives an error that it couldn't find P.x in scope C. The model works if the redeclare on D.b is removed. I haven't seen any actual model which uses this pattern yet though."	defect	closed	high	Future	New Instantiation		fixed		Per Östlund Adrian Pop
