Copied remotely
[mono.git] / mcs / errors / cs1662.cs
1 // cs1662: Can not convert the anonymous method, as the returned value does not match the return type of the delegate
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 }