blob: 2790f1cd42cea4d86854350ad387a1dd5b907c52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS0407: A method or delegate `int MainClass.Delegate()' return type does not match delegate `void TestDelegate()' return type
// Line: 12
delegate void TestDelegate();
public class MainClass {
public static int Delegate() {
return 0;
}
public static void Main() {
TestDelegate delegateInstance = new TestDelegate (Delegate);
}
}
|