blob: 87d98300a75013918206607dae639e63c5112b4e (
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
|
{ %NORUN }
{ This tests that methods introduced by a helper can be found in
with-Statements as well - Case 1: normal method in current helper }
program trhlp42;
{$mode objfpc}
{$modeswitch advancedrecords}
type
TTest = record
end;
TTestHelper = record helper for TTest
procedure Test;
end;
procedure TTestHelper.Test;
begin
end;
var
t: TTest;
begin
with t do
Test;
end.
|