Generics methods/class methods syntax error
Original Reporter info from Mantis: hnb
-
Reporter name: Maciej Izak
Original Reporter info from Mantis: hnb
- Reporter name: Maciej Izak
Description:
I can't compile attached code (in Delphi it's working):
{$MODE DELPHI}
type
TX = class
procedure Foo<T>; // Fatal: Syntax error, ";" expected but "<" found
class procedure Foo2<T>;
end;
{ TX }
class procedure TX.Foo2<T>;
begin
end;
procedure TX.Foo<T>;
begin
end;
var
x: TX;
begin
TX.Foo2<Int32>;
x := TX.Create;
x.Foo<string>;
x.Free;
end.
Mantis conversion info:
- Mantis ID: 24254
- Version: 2.7.1