[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8173.cs
diff --git a/mcs/errors/cs8173.cs b/mcs/errors/cs8173.cs
new file mode 100644 (file)
index 0000000..7c7d894
--- /dev/null
@@ -0,0 +1,13 @@
+// CS8173: The expression must be of type `long' because it is being assigned by reference
+// Line: 11
+
+public class X
+{
+       int field;
+
+       public static void Main ()
+       {
+               int i = 5;
+               ref long j = ref i;
+       }
+}
\ No newline at end of file