Files
linux-packaging-mono/mcs/errors/cs1540-13.cs

19 lines
287 B
C#
Raw Normal View History

// 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 ();
}
}