blob: e09301cd1bafddd9e826de3beb346039892703bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// CS1648: Members of readonly field `C.s' cannot be modified (except in a constructor or a variable initializer)
// Line: 13
struct S {
public int x;
}
class C {
readonly S s;
public void Test ()
{
s.x = 42;
}
}
|