[mcs] Allows shadowing of probing pattern variables
[mono.git] / mcs / errors / cs1648.cs
1 // CS1648: Members of readonly field `C.s' cannot be modified (except in a constructor or a variable initializer)
2 // Line: 13
3
4 struct S {
5         public int x;
6 }
7
8 class C {
9         readonly S s;
10
11         public void Test ()
12         {
13                 s.x = 42;
14         }
15 }