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

{ this tests that helpers can introduce instance methods for classes - mode
  ObjFPC }
program tchlp3;

{$ifdef fpc}
  {$mode objfpc}
{$endif}

type
  TTest = class

  end;

  TTestHelper = class helper for TTest
    procedure Test;
  end;

procedure TTestHelper.Test;
begin

end;

var
  t: TTest;
begin
  t.Test;
end.