fpc/tests/test/tchlp57.pp
2011-06-30 18:54:46 +00:00

25 lines
369 B
ObjectPascal

{ %NORUN }
{ This tests that methods introduced by a helper can be found in
with-Statements as well - Case 3: normal method in parent's helper }
program tchlp57;
{$mode objfpc}
type
TObjectHelper = class helper for TObject
procedure Test;
end;
TTest = class
end;
procedure TObjectHelper.Test;
begin
end;
begin
with TTest.Create do
Test;
end.