summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0407-2.cs
blob: eed9021a44af5603f3f76c8c57560c93d4d3c612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS0407: A method or delegate `int X.f(int)' return type does not match delegate `object X.Function(int)' return type
// Line: 17

using System;

class X
{
	public delegate object Function(int arg1);

	static void Main ()
	{
		Delegate d = new Function (f);
	}

	static int f (int a)
	{
		return 1;
	}
}