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>2009-06-11 21:01:21 +0400
committerMarek Safar <marek.safar@gmail.com>2009-06-11 21:01:21 +0400
commit7755c3d7d726d5d85a79763a15f7cc998956ac14 (patch)
tree18f817970b471527256bc312dd335abaf8c7a8ca /mcs/errors/cs1065.cs
parent31483560fe2b121db2133fdb2feddbdde44a9057 (diff)
parentc39fe32eb808d0385e41749f85187791efb61b1f (diff)
New tests.
svn path=/trunk/mcs/; revision=135938
Diffstat (limited to 'mcs/errors/cs1065.cs')
-rw-r--r--mcs/errors/cs1065.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs1065.cs b/mcs/errors/cs1065.cs
new file mode 100644
index 00000000000..68f9cd260ee
--- /dev/null
+++ b/mcs/errors/cs1065.cs
@@ -0,0 +1,12 @@
+// CS1065: Optional parameter is not valid in this context
+// Line: 10
+
+delegate void D (int i);
+
+public class C
+{
+ public static void Main ()
+ {
+ D d = delegate (int i = 9) { };
+ }
+}