blob: f11688cb8f7c41c45149cb8d3fffaa9a96039d8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS1593: Delegate `D' does not take `0' arguments
// Line: 11
//
// The delegate has an explicit signature with 0 arguments, so it
// can not be assigned to a delegate with one argument.
//
delegate void D (int x);
class X {
static void Main ()
{
D d2 = delegate () {};
}
}
|