Merge branch 'master' of github.com:mono/mono
[mono.git] / mcs / errors / cs0122-9.cs
1 // CS0122: `X.a' is inaccessible due to its protection level
2 // Line: 16
3
4 public class X {
5         private int a {
6                 get {
7                         return 1;
8                 }
9         }
10 }
11
12 internal class Y : X
13 {
14         int D (X x)
15         {
16                 if (x.a == 2)
17                         return 0;
18                 return 0;
19         }
20 }