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 / tgeneric97.pp
Size: Mime:
program tgeneric97;

{$mode objfpc}

type
  generic TTest<T> = class

  end;

  TTestLongInt = specialize TTest<LongInt>;
  TTestString = specialize TTest<AnsiString>;

begin
  if LowerCase(TTestLongInt.ClassName) <> 'ttest<system.longint>' then
    halt(1);
  if LowerCase(TTestString.ClassName) <> 'ttest<system.ansistring>' then
    halt(2);
end.