@@ -0,0 +1,16 @@
+{ %version=1.1 }
+{ %recompile }
+
+uses ub0421a;
+var
+ c : cl3;
+begin
+ c:=cl3.create;
+ writeln(c.f);
+ if (c.f<>10) then
+ begin
+ writeln('Error!');
+ halt(1);
+ end;
+end.
@@ -0,0 +1,14 @@
+unit ub0421a;
+interface
+{$mode objfpc}
+ uses ub0421b;
+type
+ cl3=class(cl2)
+ property f:longint read f1;
+ implementation
+ end.
@@ -0,0 +1,12 @@
+unit ub0421b ;
+ uses ub0421c;
+ cl2=class(cl1)
@@ -0,0 +1,20 @@
+unit ub0421c;
+ cl1=class
+ f1:longint;
+ constructor create;
+implementation
+ constructor cl1.create;
+ f1 := 10;