fix #1618
This commit is contained in:
parent
df0594cfd4
commit
96bd567a53
17
TestSuite/errors/err0306.pas
Normal file
17
TestSuite/errors/err0306.pas
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
unit err0306;
|
||||
|
||||
interface
|
||||
|
||||
procedure p1;
|
||||
|
||||
implementation
|
||||
|
||||
var
|
||||
b: byte;
|
||||
|
||||
procedure p1;
|
||||
begin
|
||||
err0306.err0306.err0306.p1;
|
||||
end;
|
||||
|
||||
end.
|
||||
|
|
@ -9036,6 +9036,8 @@ namespace PascalABCCompiler.TreeConverter
|
|||
{
|
||||
AddError(new MemberIsNotDeclaredInNamespace(id_right, get_location(id_right), nn));
|
||||
}
|
||||
if (si_right.Count > 0 && si_right[0].sym_info == nn)
|
||||
AddError(new MemberIsNotDeclaredInNamespace(id_right, get_location(id_right), nn));
|
||||
switch (mot)
|
||||
{
|
||||
case motivation.address_receiving:
|
||||
|
|
|
|||
Loading…
Reference in a new issue