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 / test / tenum4.pp
Size: Mime:
{ %fail}
{ %norun}

// test checks that enumeration memebers are not present in the global/local symtables 
// if enumeration is defined with scopedenums directive

program tenum4;
type
{$SCOPEDENUMS ON}
  TEnum1 = (first, second, third);
{$SCOPEDENUMS OFF}
  TEnum2 = (zero, first, second, third);
var
  En1: TEnum1;
begin
  // this is not possible since first belongs to TEnum2
  En1 := first;
end.