Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs0407.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae9245cb7cd00de6c38042de145aba0b38972b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs0407.cs: `int MainClass.Delegate()' has the wrong return type to match the delegate `void TestDelegate()'
// Line: 12

delegate void TestDelegate();

public class MainClass {
        public static int Delegate() {
                return 0;
        }

        public static void Main() {
                TestDelegate delegateInstance = new TestDelegate (Delegate);
       }
}