Updated with review feedback.
[mono.git] / mcs / errors / cs0122-16.cs
1 // CS0122: `A.x' is inaccessible due to its protection level
2 // Line: 16
3
4 public class A
5 {
6         protected bool x = true;
7         
8         public A()
9         {}
10 }
11
12 public class B
13 {
14         public static void Main(string[] args)
15         {
16                 if (new A().x)
17                 {
18                         System.Console.WriteLine("this should not compile");
19                 }
20         }
21 }