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

cs0191.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5c00dd658e2c93fb3b158d2f4b3d6c89a4c1dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// cs0191.cs: A readonly field `X.a' cannot be assigned to (except in a constructor or a variable initializer)
// Line: 8
class X {
	readonly int a;

	void Y ()
	{
		a = 1;
	}
}