projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5082 from kumpera/fix-ro-fs-file-delete
[mono.git]
/
mcs
/
errors
/
cs0251.cs
1
// CS0251: Indexing an array with a negative index (array indices always start at zero)
2
// Line: 10
3
// Compiler options: -warn:2 -warnaserror
4
5
class Main
6
{
7
public int Method (int[] array)
8
{
9
const int index = 5;
10
return array [index - 10];
11
}
12
}