Files
mono/mcs/errors/cs0200-2.cs
T
Marek Safar b23ffc4a15 New tests + updates
svn path=/trunk/mcs/; revision=87095
2007-10-08 14:04:14 +00:00

18 lines
223 B
C#

// CS0200: The read only property or indexer `X.this[int]' cannot be assigned to
// Line: 12
class X {
int this[int i] {
get {
return 1;
}
}
static int Main ()
{
X x = new X ();
x[0] = 10;
return 1;
}
}