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

cs0200.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 87ec5c6786f3822fe9ecb3f2cc5b9064e3515a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cs0200: can not assign to property X.P -- it is readonly
// line: 12
class X {
	static int P {
		get {
			return 1;
		}
	}

	static int Main ()
	{
		P = 10;
		return 1;
	}
}