summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/thlp26.pp
blob: cf56d68c8d109c79581ce70fb26e542440c1d2a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ %NORUN }

{ a helper may extend specialized generics }
{ Note: this does currently not compile in Delphi }
program thlp26;

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

type
  TFoo<T> = class
    Field: T;
  end;

  TFooInteger = TFoo<Integer>;

  TFooHelper = class helper for TFooInteger
  end;

begin
end.