summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/thlp27.pp
blob: 8cf175013c3fe1cd57bd827f08cd2ef8ae847c4b (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
{ %NORUN }

{ a helper can extend the subclass of a specialized generic }
program thlp27;

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

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

  TFooInteger = TFoo<Integer>;

  TFooBar = class(TFooInteger)

  end;

  TFooHelper = class helper for TFooBar
  end;

begin
end.