2005-06-29 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git] / errors / cs1612-3.cs
blobdc80a2f88a04001e2527e5765f63eceebf93dc6c
1 // cs1612-3.cs: Cannot modify the return value of `bar.this[...]' because it is not a variable
2 // Line: 19
4 struct foo {
5 public int x;
8 class bar {
9 public foo this [int x] {
10 get { return new foo (); }
11 set { }
15 class main {
16 static void Main ()
18 bar b = new bar ();
19 b [0].x = 5;