浏览代码

+ add test for already fixed #22252

Sven/Sarah Barth 3 年之前
父节点
当前提交
b5e57a63f5
共有 1 个文件被更改,包括 29 次插入0 次删除
  1. 29 0
      tests/webtbf/tw22252.pp

+ 29 - 0
tests/webtbf/tw22252.pp

@@ -0,0 +1,29 @@
+{ %FAIL }
+
+unit tw22252;
+
+{$mode objfpc}{$H+}
+
+interface
+
+{uses
+  Classes, SysUtils;}
+
+type
+  TFoo = class
+  strict private
+    class var FProp: Integer;
+  end;
+
+implementation
+
+procedure Test;
+var
+  f: TFoo;
+begin
+  f := TFoo.Create;
+  f.FProp := 10;
+  f.Free;
+end;
+
+end.