[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8152.cs
diff --git a/mcs/errors/cs8152.cs b/mcs/errors/cs8152.cs
new file mode 100644 (file)
index 0000000..45546ad
--- /dev/null
@@ -0,0 +1,14 @@
+// CS8152: `C' does not implement interface member `IA.Foo()' and the best implementing candidate `C.Foo()' return type `void' does not return by reference
+// Line: 11
+
+interface IA
+{
+       ref char Foo ();
+}
+
+public class C : IA
+{
+       public void Foo ()
+       {
+       }
+}