﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2785	Check of protected variables is not made when using replaceable/redeclare (again)	Henrik Tidefelt	Per Östlund	"The erroneous model `C2` in #1060 currently validates without any warning.

Repeating the code for ease of reference:
{{{
class C1
protected 
  replaceable parameter Real r=3.14;
end C1;

model C2
  replaceable parameter C1 x1(redeclare replaceable Integer r=3);
end C2;
}}}

(It is not obvious to me that the test ''flattening/modelica/redeclare/RedeclareVisibility2.mo'' is actually testing this properly; to me it looks like a flattening test with incorrect expected result, see #2784.)"	defect	accepted	high	Future	Frontend	trunk			
