Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw18131.pp
Size: Mime:
{ %norun% }
program tw18131;

{$mode delphi}

type
  TFoo1 = class
    type
      TFoo2 = class
        class var
          x: integer;
        constructor Create;
      end;
  end;

constructor TFoo1.TFoo2.Create;
begin
  inherited;
  inc(x);
end;

begin
  TFoo1.TFoo2.x := 0;
  TFoo1.TFoo2.Create.Destroy;
  if TFoo1.TFoo2.x<>1 then
    halt(1);
end.