cleol
[mcs.git] / errors / cs1662.cs
blobf544fce765e605739e60c669a71cdb17f8bd2fda
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
4 delegate void D (int x);
6 class X {
7 static void Main ()
9 D d6 = delegate (int x) { return x; }; // Return type mismatch.