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
[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git]
/
mcs
/
errors
/
cs1540-7.cs
blob
6e0d61b3229c866ce31a8d90cc644c3c8159612f
1
// CS1540: Cannot access protected member `A.Test' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
2
// Line: 17
3
4
class
A
5
{
6
protected object
[]
Test { get { return null; }
}
7
}
8
9
class
B
:
A
10
{
11
}
12
13
class
C
:
A
14
{
15
public void
Test2
(
B b
)
16
{
17
foreach
(
object
o
in
b
.
Test
)
18
{
19
}
20
}
21
22
}