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
2009-09-02 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
cs1540-5.cs
blob
2d50a574b720a4b8d74bf913876475a1100b084e
1
// cs1540.cs: Cannot access protected member `A.n' via a qualifier of type `B'. The qualifier must be of type `C.N' or derived from it
2
// Line: 12
3
4
class
A
{
5
protected int
n
=
0
;
6
}
7
8
class
B
:
A { }
9
10
class
C
:
B
{
11
class
N
{
12
static internal int
foo
(
B b
)
{ return b.n; }
13
}
14
public static int
Main
() {
15
return
N
.
foo
(
new
B
());
16
}
17
}