summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/test/tchlp30.pp
blob: b7111071f36b4605a334b1f17cb8ac9973329d09 (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
{ %FAIL }

{ helpers must not override virtual methods of the extended class }
program tchlp30;

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

type
  TTest = class
    function Test: Integer; virtual;
  end;

  TTestHelper = class helper for TTest
    function Test: Integer; override;
  end;

function TTest.Test: Integer;
begin

end;

function TTestHelper.Test: Integer;
begin

end;

begin

end.