2009-10-22 Marek Safar <marek.safar@gmail.com>
[mcs.git] / errors / cs0410.cs
blob812208bde1644c615258316068416a2367c22180
1 // CS0410: A method or delegate `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);