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
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git]
/
mcs
/
errors
/
cs1540-3.cs
blob
22feaa957551950935e06470ad86d8ddf3fe822f
1
// CS1540: Cannot access protected member `A.n' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2
// Line: 19
3
4
class
A
5
{
6
protected int
n
;
7
}
8
9
class
B
:
A
10
{
11
}
12
13
class
C
:
A
14
{
15
static
B b
=
new
B
();
16
17
static void
Main
()
18
{
19
b
.
n
=
1
;
20
}
21
}