﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1126	Dangling modifier in extends clauses not detected if name exists locally.	Jan Brugård	Jan Brugård	"Example:

{{{
model A
end A;

model B
  extends A(p = 2);
  parameter Real p;
end B;
}}}

Example above gives NO warning when checking the class, even though there is no variable p declared in class A. This seems to be because the name p is also used in class B and the check is done after flattening the inheritance hierarchy. If we change the local name to q in class B we will get a warning. See below:

{{{
model A
end A;

model B
  extends A(p = 2);
  parameter Real q;
end B;
}}}

{{{
Check of B failed
Error: In modifier (p = 2), class or component p not found in <B>
Error: Error occured while flattening model B
}}}

Here we can see that the error message is also very misleading due to the check being done after flattening. The error message refers to class B and not the inherited class A."	defect	closed	high	1.16.0	Frontend	trunk	fixed		
