nested classes delphi incompatibility
Original Reporter info from Mantis: Giel
-
Reporter name:
Original Reporter info from Mantis: Giel
- Reporter name:
Description:
This unit compiles in Delphi, but no in FPC. Version 2.5.1
unit unit1;
interface
implementation
type
TFoo1 = class
public
type
TFoo2 = object
end;
TFoo3 = object
procedure Proc(value: TFoo2);
end;
end;
procedure TFoo1.TFoo3.Proc(value: TFoo2); //Error: Identifier not found "TFoo2"
//value: TFoo1.TFoo2 does compile. Delphi doesn't need this
begin
end;
end.
Mantis conversion info:
- Mantis ID: 17952
- Fixed in version: 2.6.0
- Fixed in revision: 16439 (#0c23029d)