summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0200-2.cs
blob: 86de4529e11f51cdc085fe957a2646658f560269 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS0200: Property or indexer `X.this[int]' cannot be assigned to (it is read-only)
// Line: 14

class X {
	int this[int i] {
		get {
			return 1;
		}
	}

	static int Main ()
	{
		X x = new X ();
		x[0] = 10;
		return 1;
	}
}