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

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

type
  tc = class
    class procedure classmethod;
    procedure method;
    a : longint;
  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
    a := 5;
end.