summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0123-9.cs
blob: e11d18cc209cb6513a3af34771aa6dad8f9a511f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// CS0123: A method or delegate `Program.method(A)' parameters do not match delegate `D(dynamic)' parameters
// Line: 19

delegate object D (dynamic b);

class A
{
}

class Program
{
	static string method (A a)
	{
		return "";
	}

	static void Main ()
	{
		var d = new D (method);
	}
}