Problems with nested procedures with equal names of exist methods in a class
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
-
Reporter name: Benjamin Rosseaux
Original Reporter info from Mantis: benjamin@0ok.de @bero1985
- Reporter name: Benjamin Rosseaux
Description:
If a nested procedure in a class method is called exactly the same as a already existing method in the same class, then FPC 2.1.x outputs an error, that this procedure was defined doubly. With all Delphi versions, and FPC 2.0.x it is however correctly compilable.
Additional information:
type TBla=class
procedure Bla;
procedure BlaBla;
end;
procedure TBla.Bla;
begin
end;
procedure TBla.BlaBla;
procedure Bla;
begin
end;
begin
Bla;
end;
type TBla=class
procedure Bla;
procedure BlaBla;
end;
procedure TBla.Bla;
begin
end;
procedure TBla.BlaBla;
procedure Bla;
begin
end;
begin
Bla;
end;
Mantis conversion info:
- Mantis ID: 9176
- Version: 2.2.0
- Fixed in version: 2.2.2
- Fixed in revision: 8582 (#01fd4f55)