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
Reenable a bunch of disabled iOS Mono SDKs test suites (#19301)
[mono-project.git]
/
mcs
/
errors
/
cs1540-5.cs
blob
ba90d8a351c0400eada2b7f6282d402860cfca8f
1
// CS1540: 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
}