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
* MSBuild.cs (Execute): Don't share target output items,
[mcs.git]
/
errors
/
cs1540-10.cs
blob
87c17e3338d033d6cb249dd8f91fa83cb889ff83
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
2
// Line: 19
3
4
namespace
Test
5
{
6
public class
A
7
{
8
protected int
Property
{
9
get
{ return 0; }
10
}
11
}
12
13
public class
B
:
A
14
{
15
private sealed class
C
16
{
17
public
C
(
A a
)
18
{
19
int
test
=
a
.
Property
;
20
test
++;
21
}
22
}
23
}
24
}