projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] C#7 out variable declaration
[mono.git]
/
mcs
/
errors
/
cs1540-11.cs
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
}