summaryrefslogtreecommitdiff
path: root/tests/test/tchlp45.pp
blob: 0db08ceb012034b7207ad85d621067263fcf10ac (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
27
28
29
30
31
32
33
34
35
{ %NORUN }

{ tests whether the methods of a parent helper are usable in a derived helper }
program tchlp45;

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

type
  TTest = class

  end;

  TTestHelper = class helper for TTest
    procedure Test;
  end;

  TTestHelperSub = class helper(TTestHelper) for TTest
    procedure AccessTest;
  end;

procedure TTestHelper.Test;
begin

end;

procedure TTestHelperSub.AccessTest;
begin
  Test;
end;

begin
end.