blob: 70d6b593556c08fbeca482241033fc0c92199c11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// CS0251: Indexing an array with a negative index (array indices always start at zero)
// Line: 10
// Compiler options: -warn:2 -warnaserror
class Main
{
public int Method (int[] array)
{
const int index = 5;
return array [index - 10];
}
}
|