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

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

	static void Y ()
	{
		a = 1;
	}
}