a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
22 lines
322 B
C#
22 lines
322 B
C#
// CS1540: Cannot access protected member `A.n' via a qualifier of type `B'. The qualifier must be of type `C' or derived from it
|
|
// Line: 19
|
|
|
|
class A
|
|
{
|
|
protected int n;
|
|
}
|
|
|
|
class B : A
|
|
{
|
|
}
|
|
|
|
class C : A
|
|
{
|
|
static B b = new B ();
|
|
|
|
static void Main ()
|
|
{
|
|
b.n = 1;
|
|
}
|
|
}
|