* ecore.cs (Expression.Error_ValueCannotBeConverted): Add special
[mono.git] / mcs / errors / cs0410.cs
1 // CS0410: The method `MainClass MainClass.Delegate()' parameters and return type must be same as delegate `IA TestDelegate()' parameters and return type\r
2 // Line: 18\r
3 // Compiler options: -langversion:ISO-1\r
4 \r
5 delegate IA TestDelegate();\r
6 \r
7 interface IA {}\r
8 \r
9 public class MainClass : IA\r
10 {\r
11         static MainClass Delegate()\r
12         {\r
13                 return null;\r
14         }\r
15 \r
16         public static void Main()\r
17         {\r
18                 TestDelegate delegateInstance = new TestDelegate (Delegate);\r
19         }\r
20 }\r
21 \r