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.2.0 / tests / tbs / tb0125.pp
Size: Mime:
{ Old file: tbs0144.pp }
{ problem with 'with object do'                         OK 0.99.7 (PFV) }

program done_bug;

type
TObject = object
  Constructor Init;
  Destructor Done;
end;
PObject = ^TObject;

Constructor TObject.Init;
begin end;
Destructor TObject.Done;
begin end;

var P:PObject;

begin
New(P,Init);
with P^ do Done; { Compiler PANIC here ! }
Dispose(P);
end.