[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8147-2.cs
diff --git a/mcs/errors/cs8147-2.cs b/mcs/errors/cs8147-2.cs
new file mode 100644 (file)
index 0000000..a4375d2
--- /dev/null
@@ -0,0 +1,14 @@
+// CS8147: `X.this[int]': property and indexer which return by reference cannot have set accessors
+// Line: 6
+
+public class X
+{
+       ref string this [int arg] { 
+               set {
+
+               }
+               get {
+
+               }
+       }
+}
\ No newline at end of file