fcl-passrc fails on generics with object`s in objfpc mode
Original Reporter info from Mantis: zamtmn @zamtmn
-
Reporter name: Andrey Zubarev
Original Reporter info from Mantis: zamtmn @zamtmn
- Reporter name: Andrey Zubarev
Description:
program Project1;
{$MODE OBJFPC}
type
generic TGChangeCommand<_T> =object(TCustomChangeCommand)
end;
begin
end.
gives Parser error: "Generic can only be used with classes or arrays at token "object" in file passrcerrors.pas at line 4 column 35"
Possible it tangled modes, in the delphi mode I did not notice this. Generics with objects is not necessary to prohibit in any modes. The compiler allows to do this. Or make fine-tune behaviour of the parser
Mantis conversion info:
- Mantis ID: 31485
- Fixed in version: 3.1.1
- Fixed in revision: 35571 (#5de5fa9b)
- Target version: 3.2.0