[System.Runtime.Remoting] Adds System.Core reference for tests
[mono.git] / mcs / errors / cs0200-2.cs
1 // CS0200: Property or indexer `X.this[int]' cannot be assigned to (it is read-only)
2 // Line: 14
3
4 class X {
5         int this[int i] {
6                 get {
7                         return 1;
8                 }
9         }
10
11         static int Main ()
12         {
13                 X x = new X ();
14                 x[0] = 10;
15                 return 1;
16         }
17 }