mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 17:29:11 +02:00
+ add test for already fixed #22252
This commit is contained in:
parent
67a1d52806
commit
b5e57a63f5
29
tests/webtbf/tw22252.pp
Normal file
29
tests/webtbf/tw22252.pp
Normal file
@ -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.
|
Loading…
Reference in New Issue
Block a user