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
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs1540-11.cs
blob
1443179bd858aebde560ba8bb46a3453d1c65753
1
// CS1540: Cannot access protected member `A.this[int]' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2
// Line: 14
3
4
class
A
{
5
protected int this
[
int
i
]
{ get { return i; }
}
6
}
7
8
class
B
:
A { }
9
10
class
C
:
A
{
11
static int
Main
()
12
{
13
B b
=
new
B
();
14
return
b
[
0
];
15
}
16
}