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: 2cd5bde8edabf6f204660db00276ac0ec4532901 (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 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;
	}
}