// CS1502: The best overloaded method match for `X.M(string)' has some invalid arguments// Line: 23delegate voidD1(object o);delegate voidD2();class C
{publicC(D1 d){}publicC(D2 d){}}class X
{voidFoo(){newC(delegate(object state) {M(1);});}voidM(string s){}}