diff options
author | Miguel de Icaza <miguel@gnome.org> | 2004-01-31 06:49:52 +0300 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2004-01-31 06:49:52 +0300 |
commit | 573cf138eec58c61859a0778bec9d3fb59771fa5 (patch) | |
tree | a111d69ea0dd2c72102e1095c95a6d33346e4947 /mcs/errors/cs1662.cs | |
parent | 4181b234fdd380b3e013fc637bf7b356e35f34c4 (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.cs | 13 |
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. + } +} |