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
/
cs8160.cs
diff --git a/mcs/errors/cs8160.cs
b/mcs/errors/cs8160.cs
new file mode 100644
(file)
index 0000000..
2b4ea42
--- /dev/null
+++ b/
mcs/errors/cs8160.cs
@@ -0,0
+1,12
@@
+// CS8160: A readonly field cannot be returned by reference
+// Line: 10
+
+class X
+{
+ readonly int f = 0;
+
+ ref int Test ()
+ {
+ return ref f;
+ }
+}
\ No newline at end of file