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
2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git]
/
mcs
/
errors
/
cs0200-2.cs
blob
d4b16d31125dc0dc166d4111dc568916cd0aaf67
1
// CS0200: Property or indexer 'X.this[int]' cannot be assigned to -- it is read only
2
// Line: 12
3
4
class
X
{
5
int this
[
int
i
] {
6
get
{
7
return
1
;
8
}
9
}
10
11
static int
Main
()
12
{
13
X x
=
new
X
();
14
x
[
0
] =
10
;
15
return
1
;
16
}
17
}