projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[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
+++ b/
mcs/errors/cs8177.cs
@@ -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