2007-03-09 Chris Toshok <toshok@ximian.com>
[mcs.git] / errors / cs0410.cs
blob14aecf864d882f019a31a65cf5d6571c4eec3c2a
1 // CS0410: The method `MainClass MainClass.Delegate()' parameters and return type must be same as delegate `IA TestDelegate()' parameters and return type
2 // Line: 18
3 // Compiler options: -langversion:ISO-1
5 delegate IA TestDelegate();
7 interface IA {}
9 public class MainClass : IA
11 static MainClass Delegate()
13 return null;
16 public static void Main()
18 TestDelegate delegateInstance = new TestDelegate (Delegate);