[mcs] declaration expression after ref/out argument
[mono.git] / mcs / errors / cs1503-17.cs
diff --git a/mcs/errors/cs1503-17.cs b/mcs/errors/cs1503-17.cs
new file mode 100644 (file)
index 0000000..26766c0
--- /dev/null
@@ -0,0 +1,14 @@
+// CS1501: Argument `#1' cannot convert `ref string' expression to type `ref int'
+// Line: 8
+
+class C
+{
+       public static void Main ()
+       {
+               Foo (ref var x = "");
+       }
+
+       static void Foo (ref int i)
+       {
+       }
+}
\ No newline at end of file