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

{ tests that helpers can introduce properties }
program thlp2;

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

type
  TObjectHelper = class helper for TObject
    class function GetTest: Integer; static;
    class procedure SetTest(aValue: Integer); static;
    class property Test: Integer read GetTest write SetTest;
  end;

class function TObjectHelper.GetTest: Integer;
begin
end;

class procedure TObjectHelper.SetTest(aValue: Integer);
begin

end;

begin
  TObject.Test := TObject.Test;
end.