@@ -0,0 +1,12 @@
+program bug1;
+
+function f : tobject;
+begin
+ f := tobject.create;
+end;
+var
+ s : single;
+ s := single(f);
+end.