[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs0271.cs
1 // CS0271: The property or indexer `P.Prop' cannot be used in this context because the get accessor is inaccessible
2 // Line: 19
3
4 class P
5 {
6     public static int Prop
7     {
8         private get {
9             return 4;
10         }
11         set {}
12     }
13 }
14
15 public class C
16 {
17     public static int Main ()
18     {
19         return P.Prop;
20     }
21 }