Parser Error? concerning generic classes
Original Reporter info from Mantis: ivo_steinmann@gmx.net
-
Reporter name: Ivo Steinmann
Original Reporter info from Mantis: ivo_steinmann@gmx.net
- Reporter name: Ivo Steinmann
Description:
Error in code not recogniced. The program below compiles. After uncommeting the line "TCS = specialize TC&LtPos;Integer>;" compiling fails. I think
var
f: TC;
shouldn't be allowed ;) but of course
f: TC&LtPos;T>; should, but that's another topic :D
Steps to reproduce:
program bug;
{$mode objfpc}
type
generic TC<T> = class(TObject)
type
PT = ^T;
var
f: TC;
strict private
end;
// TCS = specialize TC&LtPos;Integer>;
begin
end.
Mantis conversion info:
- Mantis ID: 15477
- OS: Linux Gentoo x86_64
- OS Build: latest
- Build: 14504
- Platform: AMD64 Phenom X4
- Version: 2.5.1
- Fixed in version: 2.6.0