Improved JavaScriptSerializer.ConvertToType Nullable handling. Fixes #19287. ConvertT...
[mono.git] / mcs / errors / cs0127-4.cs
1 // CS0127: `D': A return keyword must not be followed by any expression when delegate returns void
2 // Line: 9
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 }