summaryrefslogtreecommitdiff
path: root/tests/webtbf/tw8150b.pp
blob: 0a612679577919bfb9f831aeb3c9365851b9e2bb (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
{ %fail }
{ %norun }

{$ifdef fpc}
{$mode delphi}
{$endif}

type
  tc = class
    class procedure classmethod;
    procedure method;
    a : longint;
    property x: longint read a;
  end;

  ttc = class of tc;

class procedure tc.classmethod;
begin
end;

procedure tc.method;
begin
end;

var
  c: ttc;
begin
  c := tc;
  with c do
    writeln(x);
end.