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 / tb0083.pp
Size: Mime:
{ Old file: tbs0096.pp }
{ problem with objects as parameters                    OK 0.99.6 (PM) }

type
   TParent = object
   end;

   PParent = ^TParent;

   TChild = object(TParent)
   end;

procedure aProc(const x : TParent );
begin
end;

procedure anotherProc(var x : TParent );
begin
end;

var
   y : TChild;

   begin
      aProc(y);
      anotherProc(y);
   end.