[mcs] Initial by ref returns and variables support
[mono.git] / mcs / errors / cs8177.cs
diff --git a/mcs/errors/cs8177.cs b/mcs/errors/cs8177.cs
new file mode 100644 (file)
index 0000000..414ece1
--- /dev/null
@@ -0,0 +1,15 @@
+// CS8177: Async methods cannot use by-reference variables
+// Line: 12
+
+using System.Threading.Tasks;
+
+class X
+{
+       int x;
+
+       async Task Test ()
+       {
+               ref int y = ref x;
+               await Task.Yield ();
+       }
+}
\ No newline at end of file