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-11-20 Marek Safar <marek.safar@gmail.com>
[mcs.git]
/
errors
/
cs1540-3.cs
blob
ac6c697560cc188c686f0907b4e39422c1df646d
1
// cs1540.cs: 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
}