Generic constraints should not be allowed in definitions (Delphi mode)
Original Reporter info from Mantis: ryan_joseph @genericptr
-
Reporter name: Ryan Joseph
Original Reporter info from Mantis: ryan_joseph @genericptr
- Reporter name: Ryan Joseph
Description:
The test program should produce an error but currently does not.
Steps to reproduce:
{$mode delphi}
program test;
type
TFooA = class
end;
type
TFooB = class
end;
type
TList<T: TFooA> = class
procedure Foo;
end;
procedure TList<T: TFooB>.Foo;
begin
end;
begin
end.
Mantis conversion info:
- Mantis ID: 36584
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 44174 (#b7afb243)