2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git] / mcs / errors / cs0123-2.cs
1 // CS0123: The method `MainClass.Delegate()' parameters do not match delegate `IA TestDelegate(bool)' parameters\r
2 // Line: 17\r
3 \r
4 delegate IA TestDelegate(bool b);\r
5 \r
6 interface IA {}\r
7 \r
8 public class MainClass : IA\r
9 {\r
10         static MainClass Delegate()\r
11         {\r
12                 return null;\r
13         }\r
14 \r
15         public static void Main()\r
16         {\r
17                 TestDelegate delegateInstance = new TestDelegate (Delegate);\r
18         }\r
19 }\r
20 \r