delphi incompatibility : reintroduce not allowed for objects
Original Reporter info from Mantis: AlexRayne
-
Reporter name: AlexRayne
Original Reporter info from Mantis: AlexRayne
- Reporter name: AlexRayne
Description:
Hallow.
example provided below normaly compiles in delphi7, but failed in fpc with error
that reintroduce not allowed for objects.
Steps to reproduce:
{.$mode delphi}
program tbreintroduce;
type
parent = object
constructor init;
end;
child = object(parent)
constructor init(a : byte);reintroduce;
end;
constructor parent.init;
begin
end;
constructor child.init(a : byte);
begin
end;
begin
end.
Mantis conversion info:
- Mantis ID: 14743
- Version: 2.2.4
- Fixed in version: 2.4.2
- Fixed in revision: 14536 (#65edb758)