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
* ExternTable.cs (ExternTable.GetModuleTypeRef): 'module_table' can be
[mcs.git]
/
errors
/
cs1540-2.cs
blob
17ea7451feb618e9fdd8dc36f6abb2a3bb133303
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
}