summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/thlp28.pp
blob: 4425c59d45b09448b9c6298dbabc538ad7bfee91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ %FAIL }

{ a helper may not be defined as a generic type }
program thlp28;

{$ifdef fpc}
  {$mode delphi}
{$endif}

type
  TFoo = class

  end;

  TFooHelper<T> = class helper for TFoo
    function Test: T;
  end;

function TFooHelper<T>.Test: T;
begin

end;

begin

end.