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

{ class helpers can access (strict) protected, public and published members -
  here: public }
program tchlp16;

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

uses
  uchlp12;

type
  TTestHelper = class helper for TTest
    function AccessTest: Integer;
  end;

function TTestHelper.AccessTest: Integer;
begin
  Result := Test5;
end;

begin
end.