New test.
[mono.git] / mcs / errors / cs1662.cs
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);
7
8 class X {
9         static void Main ()
10         {
11                 D d6 = delegate (int x) { return x; }; // Return type mismatch.
12         }
13 }