2009-06-17 Marek Safar <marek.safar@gmail.com>
[mono.git] / mcs / errors / cs1662.cs
1 // CS1662.cs: Cannot convert `anonymous method' 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 delegate void D (int x);
5
6 class X {
7         static void Main ()
8         {
9                 D d6 = delegate (int x) { return x; }; // Return type mismatch.
10         }
11 }