repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git]
/
mcs
/
errors
/
cs0251.cs
blob
70d6b593556c08fbeca482241033fc0c92199c11
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
}