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

{ additional test based on 21064 }
program tgeneric78;

{$mode delphi}

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

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

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

type
  TGenericClassLongInt = TGenericClass<String>;
begin
end.