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-12.cs
blob
743ca561ac4df4e3c26d24ac124ef6f275da1acd
1
// CS1540: Cannot access protected member `A.Test.get' 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
public object
[]
Test
{
7
set
{ }
8
protected get
{ return null; }
9
}
10
}
11
12
class
B
:
A
13
{
14
}
15
16
class
C
:
A
17
{
18
public void
Test2
(
B b
)
19
{
20
foreach
(
object
o
in
b
.
Test
) {
21
}
22
}
23
}