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 / tw33414.pp
Size: Mime:
{$mode objfpc}{$H+}
uses Classes, SysUtils;

type
  generic TFoo<SomeEnum> = class
    m: array[SomeEnum] of integer;
  end;

  TEnum = (e0, e1);

var
  a: specialize TFoo<TEnum>;

begin
  if low(a.m)<>e0 then
    halt(1);
  if high(a.m)<>e1 then
    halt(1);
  writeln('ok');
end.