Generics forward declaration not solved
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:
{$mode delphi}{$H+}
type
TA<T> = class
class function Foo: T; // Error: Forward declaration not solved "class procedure Foo:AnsiString;"
end;
TB<T> = class
constructor Create;
end;
class function TA<T>.Foo: T;
begin
end;
constructor TB<T>.Create;
begin
TA<T>.Foo;
end;
var
b: TB<string>;
Mantis conversion info:
- Mantis ID: 24282
- Version: 2.7.1