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

program tw21064b;

{$mode delphi}

type
  IGenericIntf<T> = interface
    function SomeMethod: T;
  end;

  TGenericClass<T> = class(TInterfacedObject, IGenericIntf<T>)
  private
    type
      IntfType = IGenericIntf<T>;
  protected
    function GenericIntf_SomeMethod: T;
    function IntfType.SomeMethod = GenericIntf_SomeMethod;
  end;

function TGenericClass<T>.GenericIntf_SomeMethod: T;
begin
end;

type
  TGenericClassLongInt = TGenericClass<LongInt>;
begin
end.