blob: a56b24e687e38507bca83a23a9ae3411a0bd841b (
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
28
29
30
31
32
33
34
35
36
37
38
|
unit uhlp43;
{$ifdef fpc}
{$mode delphi}
{$endif}
interface
type
TInterfaceHelper = class helper for TObject
class function Test: Integer;
end;
function DoTest: Integer;
implementation
class function TInterfaceHelper.Test: Integer;
begin
Result := 1;
end;
type
TImplementationHelper = class helper for TObject
class function Test: Integer;
end;
class function TImplementationHelper.Test: Integer;
begin
Result := 2;
end;
function DoTest: Integer;
begin
Result := TObject.Test;
end;
end.
|