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
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git]
/
mcs
/
errors
/
cs0200-2.cs
blob
86de4529e11f51cdc085fe957a2646658f560269
1
// CS0200: Property or indexer `X.this[int]' cannot be assigned to (it is read-only)
2
// Line: 14
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
}