diff options
Diffstat (limited to 'mcs/errors/cs1612-3.cs')
-rw-r--r-- | mcs/errors/cs1612-3.cs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/mcs/errors/cs1612-3.cs b/mcs/errors/cs1612-3.cs deleted file mode 100644 index dc80a2f88a0..00000000000 --- a/mcs/errors/cs1612-3.cs +++ /dev/null @@ -1,21 +0,0 @@ -// cs1612-3.cs: Cannot modify the return value of `bar.this[...]' because it is not a variable -// Line: 19 - -struct foo { - public int x; -} - -class bar { - public foo this [int x] { - get { return new foo (); } - set { } - } -} - -class main { - static void Main () - { - bar b = new bar (); - b [0].x = 5; - } -} |