blob: 1ebc790b65482b75269d03b0ee6b2d9b34a575c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// CS1540: Cannot access protected member `A.del' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it
// Line: 16
delegate int D ();
class A
{
protected D del;
}
class B : A
{
public static void Main ()
{
A b = new A ();
var v = b.del ();
}
}
|