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
2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git]
/
errors
/
cs0122-23.cs
blob
0fd03a5738bc9c2676a22bce60b6c8fa393246f0
1
// CS0122: `C.this[int]' is inaccessible due to its protection level
2
// Line: 6
3
4
using
System
;
5
using
System
.
Collections
;
6
7
class
C
8
{
9
protected string this
[
int
i
]
{ set {}
}
10
}
11
12
public class
D
13
{
14
void
Foo
()
15
{
16
C c
=
new
C
();
17
c
[
0
] =
null
;
18
}
19
}