blob: 350d275825fb19d3e9fa971ee3352a92ee89a90b (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{$mode objfpc}
unit uwpo2;
interface
type
ta = class
constructor mycreate;
procedure test; virtual;
class procedure test2; virtual;
end;
tb = class(ta)
procedure test; override;
class procedure test2; override;
end;
var
cc: class of ta;
implementation
constructor ta.mycreate;
begin
end;
procedure ta.test;
begin
writeln('ta.test');
halt(1);
end;
class procedure ta.test2;
begin
writeln('ta.test2');
end;
procedure tb.test;
begin
writeln('tb.test');
end;
class procedure tb.test2;
begin
cc:=self;
writeln('tb.test2');
end;
end.
|