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
/
cs8149-2.cs
diff --git a/mcs/errors/cs8149-2.cs
b/mcs/errors/cs8149-2.cs
new file mode 100644
(file)
index 0000000..
3514769
--- /dev/null
+++ b/
mcs/errors/cs8149-2.cs
@@ -0,0
+1,14
@@
+// CS8149: By-reference returns can only be used in lambda expressions that return by reference
+// Line: 12
+
+using System;
+
+class A
+{
+ int p;
+
+ void Test ()
+ {
+ Action a = () => ref p;
+ }
+}
\ No newline at end of file