mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
17 lines
262 B
C#
17 lines
262 B
C#
// cs1540.cs: Cannot access protected member `A.n' via a qualifier of type `A'. The qualifier must be of type `B' or derived from it
|
|
// Line: 14
|
|
|
|
class A
|
|
{
|
|
protected int n;
|
|
}
|
|
|
|
class B : A
|
|
{
|
|
public static void Main ()
|
|
{
|
|
A b = new A ();
|
|
b.n = 1;
|
|
}
|
|
}
|