Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1648.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f4d9dec5530a6a284e05735f6f95b3f23772f9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs1648.cs: Members of readonly field 'C.s' cannot be assigned to (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;
	}
}