blob: 36f14f5943318d7a40a17d67eb93d6ba3b7f592b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// CS0410: A method or delegate `MainClass MainClass.Delegate()' parameters and return type must be same as delegate `IA TestDelegate()' parameters and return type
// Line: 18
// Compiler options: -langversion:ISO-1
delegate IA TestDelegate();
interface IA {}
public class MainClass : IA
{
static MainClass Delegate()
{
return null;
}
public static void Main()
{
TestDelegate delegateInstance = new TestDelegate (Delegate);
}
}
|