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
2010-03-07 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git]
/
errors
/
cs1540-6.cs
blob
810551dcb66c35a7721ac55d7b252f76070528bb
1
// cs1540-6.cs: Cannot access protected member `A.A(A)' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it
2
// Line: 25
3
4
public class
A
{
5
public
A
()
6
{
7
}
8
9
protected
A
(
A a
)
10
{
11
}
12
}
13
14
public class
B
:
A
{
15
public
B
() :
base
()
16
{
17
}
18
19
public
B
(
A a
) :
base
(
a
)
20
{
21
}
22
23
public
A MyA
{
24
get
{
25
A a
=
new
A
(
this
);
26
return
a
;
27
}
28
}
29
}