2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0200-2.cs
blob92e3c56398c1c37d9f2787db22e9f9dc95530b25
1 // CS0200: The read only property or indexer `X.this[int]' cannot be assigned to
2 // Line: 12
4 class X {
5 int this[int i] {
6 get {
7 return 1;
11 static int Main ()
13 X x = new X ();
14 x[0] = 10;
15 return 1;