a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
12 lines
242 B
C#
12 lines
242 B
C#
// CS0127: `D': A return keyword must not be followed by any expression when delegate returns void
|
|
// Line: 9
|
|
|
|
delegate void D (int x);
|
|
|
|
class X {
|
|
static void Main ()
|
|
{
|
|
D d6 = delegate (int x) { return x; }; // Return type mismatch.
|
|
}
|
|
}
|