Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
323 B
C#

// CS1502: The best overloaded method match for `X.M(string)' has some invalid arguments
// Line: 23
delegate void D1 (object o);
delegate void D2 ();
class C
{
public C (D1 d)
{
}
public C (D2 d)
{
}
}
class X
{
void Foo ()
{
new C (delegate (object state) {
M (1);
});
}
void M (string s)
{
}
}