mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 02:19:30 +02:00

* added another bunch of tests (54-59) git-svn-id: branches/svenbarth/classhelpers@16949 -
34 lines
444 B
ObjectPascal
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.
|