浏览代码

* new bug

peter 21 年之前
父节点
当前提交
8ad943d999
共有 2 个文件被更改,包括 45 次插入0 次删除
  1. 21 0
      tests/webtbs/tw2920.pp
  2. 24 0
      tests/webtbs/uw2920.pp

+ 21 - 0
tests/webtbs/tw2920.pp

@@ -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;
+
+begin
+end.

+ 24 - 0
tests/webtbs/uw2920.pp

@@ -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;
+
+interface
+
+{$mode Delphi}
+{$H+}
+
+type myclass= class
+                function bb:string; virtual;
+                end;
+
+implementation
+
+function myclass.bb:string;
+
+begin
+  bb:='a';
+end;
+
+begin
+end.