a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
22 lines
284 B
C#
22 lines
284 B
C#
// CS0122: `A.x' is inaccessible due to its protection level
|
|
// Line: 16
|
|
|
|
public class A
|
|
{
|
|
protected bool x = true;
|
|
|
|
public A()
|
|
{}
|
|
}
|
|
|
|
public class B
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
if (new A().x)
|
|
{
|
|
System.Console.WriteLine("this should not compile");
|
|
}
|
|
}
|
|
}
|