[mcs] Fixes codegen for pattern probing with value-type variables
[mono.git] / mcs / errors / cs1650.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: 14
3
4 using System;
5
6 struct S {
7         public int x;
8 }
9
10 class C {
11         static readonly S s;
12
13         public static void Main(String[] args) {
14                 s.x = 42;
15                 Console.WriteLine(s.x);
16         }
17 }
18