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:
authorMiguel de Icaza <miguel@gnome.org>2004-01-31 06:49:52 +0300
committerMiguel de Icaza <miguel@gnome.org>2004-01-31 06:49:52 +0300
commit573cf138eec58c61859a0778bec9d3fb59771fa5 (patch)
treea111d69ea0dd2c72102e1095c95a6d33346e4947 /mcs/errors/cs1662.cs
parent4181b234fdd380b3e013fc637bf7b356e35f34c4 (diff)
New errors, handled on the anonymous-methods branch
svn path=/trunk/mcs/; revision=22632
Diffstat (limited to 'mcs/errors/cs1662.cs')
-rw-r--r--mcs/errors/cs1662.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/mcs/errors/cs1662.cs b/mcs/errors/cs1662.cs
new file mode 100644
index 00000000000..defcc6558af
--- /dev/null
+++ b/mcs/errors/cs1662.cs
@@ -0,0 +1,13 @@
+// cs1662: Can not convert the anonymous method, as the returned value does not match the return type of the delegate
+// Line: 11
+//
+// Return type mismatch.
+//
+delegate void D (int x);
+
+class X {
+ static void Main ()
+ {
+ D d6 = delegate (int x) { return x; }; // Return type mismatch.
+ }
+}