[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs1715-3.cs
diff --git a/mcs/errors/cs1715-3.cs b/mcs/errors/cs1715-3.cs
new file mode 100644 (file)
index 0000000..d3cd5da
--- /dev/null
@@ -0,0 +1,16 @@
+// CS1715: `B.Foo': type must be `int' to match overridden member `A.Foo'
+// Line: 11
+
+public abstract class A
+{
+       public abstract ref int Foo { get; }
+}
+
+public class B : A
+{
+       public override ref long Foo {
+               get {
+                       throw null;
+               }
+       }
+}
\ No newline at end of file