{ %fail }{ %norun }{$ifdef fpc}{$mode delphi}{$endif}
type
tc =classclass procedure classmethod;
procedure method;
a : longint;end;
ttc =class of tc;class procedure tc.classmethod;beginend;
procedure tc.method;beginend;
var
c: ttc;begin
c := tc;
with c do
a :=5;end.