[mcs] Allow properties and indexers of by-ref values to be set without setter
[mono.git] / mcs / errors / cs1650-2.cs
1 // CS1650: Fields of static readonly field `C.s' cannot be assigned to (except in a static constructor or a variable initializer)
2 // Line: 15
3
4 struct S
5 {
6         public int x { get; set; }
7 }
8
9 class C
10 {
11         static readonly S s;
12
13         public static void Main (string[] args)
14         {
15                 s.x = 42;
16         }
17 }
18