repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2006-09-21 Mike Kestner <mkestner@novell.com>
[mcs.git]
/
errors
/
cs0251.cs
blob
a8c5ec30bc039957d88c6de7909b08694b8835ac
1
// cs0251.cs: 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
}