fix 'new' usage
[mcs.git] / errors / cs0123-2.cs
blob120e8feb866edbc743aee9e97feb648599413dc8
1 // CS0123: The method `MainClass.Delegate()' parameters do not match delegate `IA TestDelegate(bool)' parameters
2 // Line: 17
4 delegate IA TestDelegate(bool b);
6 interface IA {}
8 public class MainClass : IA
10 static MainClass Delegate()
12 return null;
15 public static void Main()
17 TestDelegate delegateInstance = new TestDelegate (Delegate);