2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs0407-2.cs
blobeed9021a44af5603f3f76c8c57560c93d4d3c612
1 // CS0407: A method or delegate `int X.f(int)' return type does not match delegate `object X.Function(int)' return type
2 // Line: 17
4 using System;
6 class X
8 public delegate object Function(int arg1);
10 static void Main ()
12 Delegate d = new Function (f);
15 static int f (int a)
17 return 1;