projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[runtime] Avoid indirection when building MonoContext on darwin
[mono.git]
/
mcs
/
errors
/
cs1540-12.cs
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
}