Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / errors / cs0272.cs
1 // CS0272: The property or indexer `P.Prop' cannot be used in this context because the set accessor is inaccessible
2 // Line: 19
3
4 class P
5 {
6     public static int Prop
7     {
8         get {
9             return 4;
10         }
11         private set {}
12     }
13 }
14
15 public class C
16 {
17     public static void Main ()
18     {
19         P.Prop = 453422;
20     }
21 }