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 / test / tgeneric71.pp
Size: Mime:
{ %NORUN }

{ This tests that one can use a specialization of another generic which was
  introduced in the currently parsed generic can be used as a parameter type
  in a procedure variable introduced in the current generic as well }
program tgeneric71;

{$mode objfpc}

type
  generic TSomeGeneric<T> = class

  end;

  generic TSomeOtherGeneric<T> = class
  type
    TSomeGenericT = specialize TSomeGeneric<T>;
    TSomeProc = procedure(aParam: TSomeGenericT);
  end;

begin

end.