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
/
cs1540-2.cs
blob
3de36ee0baca6f6d4a300f8e167f9e40550fc449
1
// cs1540-2.cs : Cannot access protected member `A.X()' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2
// Line: 21
3
4
class
A
5
{
6
protected virtual void
X
()
7
{
8
}
9
}
10
11
class
B
:
A
12
{
13
}
14
15
class
C
:
A
16
{
17
static
B b
=
new
B
();
18
19
static void
M
()
20
{
21
b
.
X
();
22
}
23
}