2005-06-29 Jonathan Chambers <jonathan.chambers@ansys.com>
[mcs.git] / errors / cs1662.cs
blob9bcffc16b2325933bb1f1bcea7f879c65c44ad27
1 // cs1662.cs: Cannot convert anonymous method block to delegate type `D' because some of the return types in the block are not implicitly convertible to the delegate return type
2 // Line: 11
3 //
4 // Return type mismatch.
5 //
6 delegate void D (int x);
8 class X {
9 static void Main ()
11 D d6 = delegate (int x) { return x; }; // Return type mismatch.