summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1502-6.cs
blob: 23d8e7e8deda35d131ce7af70b1970e915beda74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS1502: The best overloaded method match for `Test.Test(TestMethod2)' has some invalid arguments
// Line: 8

public class Test
{
	void Foo ()
	{
		new Test (new TestMethod (Foo));
	}

	public Test (TestMethod2 test) {}
}

public delegate void TestMethod ();
public delegate void TestMethod2 (object o);