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

{$mode objfpc}{$H+}

type
  TConstHolder = class
  public
    const
      C = 10;
  end;

  TSimple = class
    Arr: array [0..TConstHolder.C] of Integer; //this works
  end;


  generic TGeneric <T> = class
    Arr: array [0..T.C] of Integer; //but here is error
// Can't evaluate constant expression

  end;

begin
end.