mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 10:48:30 +02:00
30 lines
273 B
ObjectPascal
30 lines
273 B
ObjectPascal
{ %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.
|