fpc/tests/tbs/tb0302.pp
2000-11-30 22:38:14 +00:00

24 lines
252 B
ObjectPascal

{$mode objfpc}
{ tests forward class types }
type
tclass1 = class;
tclass2 = class
class1 : tclass1;
end;
var
c : tclass1;
type
tclass1 = class(tclass2)
i : longint;
end;
begin
c:=tclass1.create;
c.i:=12;
end.