fpc/tests/test/tchlp54.pp
svenbarth 2462b5c84a * verified some tests with Delphi XE
* added another bunch of tests (54-59)

git-svn-id: branches/svenbarth/classhelpers@16949 -
2011-02-20 17:12:42 +00:00

34 lines
444 B
ObjectPascal

{ tests whether the methods of a parent helper are usable in a derived helper }
program tchlp54;
{$ifdef fpc}
{$mode objfpc}
{$endif}
{$apptype console}
type
TFoo = class
end;
TFooHelper = class helper for TFoo
procedure Test;
end;
TFooBarHelper = class helper(TFooHelper) for TFoo
procedure AccessTest;
end;
procedure TFooHelper.Test;
begin
end;
procedure TFooBarHelper.AccessTest;
begin
Test;
end;
begin
end.