Hello (win 10, laz 2.2.2/fpc 3.2.2)
if I write this
procedure Test1;
begin
beep;
end;
procedure Test2;
procedure Test1;
begin
beep;
end;
begin
Test1;
beep;
end;
all is fine, and nested Test1 is called in Test2 execution
but if I write this, where procedures are part of Form1
procedure TForm1.Test1;
begin
beep;
end;
procedure TForm1.Test2;
procedure Test1;
begin
beep;
end;
begin
beep;
end;
the compiler says : Duplicate identifier "test1".
That is right ?