mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
18 lines
223 B
C#
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;
|
|
}
|
|
}
|