Generics internal error with 2.1.5
Original Reporter info from Mantis: Almindor
-
Reporter name: Ales Katona
Description:
program Project1;
{$mode objfpc}{$H+}
type
generic TGenMap<T> = class(TObject)
function Add(const AKey: T): T;
end;
function TGenMap.Add(const AKey: T): T;
begin
end;
var
a: TGenMap;
begin
a := TGenMap.Create;
a.Add(5);
a.Free;
end.
Mantis conversion info:
-
Mantis ID: 9225
-
OS: Linux
-
OS Build: 2.6
-
Platform: x86_32
-
Version: 2.2.0
-
Fixed in version: 2.2.0
-
Fixed in revision: 8238 (#e680cfe1)