TaskAwaiter from CoreFX
[mono-project.git] / mcs / errors / cs1593-2.cs
blobf11688cb8f7c41c45149cb8d3fffaa9a96039d8a
1 // CS1593: Delegate `D' does not take `0' arguments
2 // Line: 11
3 //
4 // The delegate has an explicit signature with 0 arguments, so it
5 // can not be assigned to a delegate with one argument.
6 //
7 delegate void D (int x);
9 class X {
10 static void Main ()
12 D d2 = delegate () {};