blob: dc96f2ba6356b421fb228d2ff4ed293967ad96e7 (
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
|
{ %NORUN }
{ This tests that methods introduced by a helper can be found in
with-Statements as well - Case 4: class method in parent's helper }
program tchlp58;
{$mode objfpc}
type
TObjectHelper = class helper for TObject
class procedure Test;
end;
TTest = class
end;
class procedure TObjectHelper.Test;
begin
end;
begin
with TTest do
Test;
end.
|