w32file-unix.c: In function 'mono_w32file_get_file_size':
[mono-project.git] / mcs / errors / cs0251.cs
blob70d6b593556c08fbeca482241033fc0c92199c11
1 // CS0251: Indexing an array with a negative index (array indices always start at zero)
2 // Line: 10
3 // Compiler options: -warn:2 -warnaserror
5 class Main
7 public int Method (int[] array)
9 const int index = 5;
10 return array [index - 10];