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 / webtbf / tw4913.pp
Size: Mime:
{ %fail }

{ Source provided for Free Pascal Bug Report 4913 }
{ Submitted by "Vinzent Hoefler" on  2006-03-17 }
{ e-mail: ada.rocks@jlfencey.com }
const
   Some_String : String = '0123456789';

type
   Some_Enum = (Zero, One, Two, Three);

var
   i : Some_Enum;

begin
   WriteLn (Some_String[2]);   // Should fail if "Some_String = '...'";
   WriteLn (Some_String[Two]); // Should fail with type error.

   i := Three;
   WriteLn (Some_String[i]);
end.