fpc/tests/webtbs/tw6624.pp
florian e4d2d87bb9 * function results can be a generic parameter
git-svn-id: trunk@3585 -
2006-05-19 21:54:39 +00:00

23 lines
260 B
ObjectPascal

program project1;
{$mode objfpc}{$H+}
type
generic TGenTest1<T> = class
public
procedure One(const a: T);
function Two: T;
end;
procedure TGenTest1.One(const a: T);
begin
end;
function TGenTest1.Two: T; // fails here
begin
end;
begin
end.