projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Remove redundant file from Java build
[mono.git]
/
mcs
/
errors
/
cs1540-10.cs
1
// CS1540: Cannot access protected member `Test.A.Property' via a qualifier of type `Test.A'. The qualifier must be of type `Test.B.C' or derived from it
\r
2
// Line: 19
\r
3
\r
4
namespace Test
\r
5
{
\r
6
public class A
\r
7
{
\r
8
protected int Property {
\r
9
get { return 0; }
\r
10
}
\r
11
}
\r
12
\r
13
public class B : A
\r
14
{
\r
15
private sealed class C
\r
16
{
\r
17
public C (A a)
\r
18
{
\r
19
int test = a.Property;
\r
20
test++;
\r
21
}
\r
22
}
\r
23
}
\r
24
}