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

program tw22790c;

{$MODE DELPHI}

type
  TPredicateMethod<TOperand> = function (const x: TOperand): Boolean of object;

  TWrapper<TOperand> = class
  strict private
    type
      POperand = ^TOperand;
      TPredicateMethodForPOperand = TPredicateMethod<POperand>;
      TDereferencingAdapter = class
        function F(const x: POperand): Boolean;
      end;
  public
    procedure Z;
  end;

function TWrapper<TOperand>.TDereferencingAdapter.F(const x: POperand): Boolean;
begin
end;

procedure TWrapper<TOperand>.Z;
var
  pred: TPredicateMethodForPOperand;
    { Error: Generics without specialization cannot be used as ... }
begin
  with TDereferencingAdapter.Create do begin
    pred := F;
    Free;
  end;
end;

begin
end.