@@ -0,0 +1,21 @@
+unit tw2920;
+
+interface
+{$mode Delphi}
+Uses uw2920;
+type myclass2= class(myclass)
+ function bb:string; override;
+ end;
+implementation
+function myclass2.bb:string;
+begin
+ bb:='b';
+end;
+end.
@@ -0,0 +1,24 @@
+{ Source provided for Free Pascal Bug Report 2920 }
+{ Submitted by "marco (Gory Bugs Department)" on 2004-01-27 }
+{ e-mail: }
+unit uw2920;
+{$H+}
+type myclass= class
+ function bb:string; virtual;
+function myclass.bb:string;
+ bb:='a';