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
2009-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs0271-2.cs
blob
5f702e0c5a15aa8b1267b84f7c6046c80d9342d0
1
// CS0271: The property or indexer `C.this[string]' cannot be used in this context because a `set' accessor is inaccessible
2
// Line: 13
3
4
class
C
5
{
6
public int this
[
string
i
]
{ private set { }
get
{ return 1; }
}
7
}
8
9
public class
Test
10
{
11
void
Foo
()
12
{
C c
=
new
C
();
13
c
[
""
] =
9
;
14
}
15
}