Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2005-02-23 17:29:23 +0300
committerMarek Safar <marek.safar@gmail.com>2005-02-23 17:29:23 +0300
commit262cf8070d29225f6533f6e529fab7816e963bc6 (patch)
tree65cece9170e76d65767dfa84d8ef150b43c6aecb /mcs/errors/cs1677-2.cs
parent709672fdbc6cba2cdd8bab5e90c2074ab01e2d2d (diff)
add new test
updated fixed svn path=/trunk/mcs/; revision=41092
Diffstat (limited to 'mcs/errors/cs1677-2.cs')
-rw-r--r--mcs/errors/cs1677-2.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs1677-2.cs b/mcs/errors/cs1677-2.cs
new file mode 100644
index 00000000000..9a6fc702c7d
--- /dev/null
+++ b/mcs/errors/cs1677-2.cs
@@ -0,0 +1,13 @@
+// cs1677: out parameters are not permitted on anonymous delegate declarations.
+// Line: 11
+//
+// The delegate has an explicit signature, so it can not be assigned.
+//
+delegate void D (int x);
+
+class X {
+ static void Main ()
+ {
+ D d2 = delegate (ref int x) {};
+ }
+}