Merge pull request #3769 from evincarofautumn/fix-verify-before-allocs
[mono.git] / mcs / errors / cs0198.cs
1 // CS0198: A static readonly field `X.a' cannot be assigned to (except in a static constructor or a variable initializer)
2 // Line: 8
3 class X {
4         static readonly int a;
5
6         static void Y ()
7         {
8                 a = 1;
9         }
10 }
11
12