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: 084467f3c0f26b3ae975d62ccc3933d5f3f6e54f (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
// Line: 12

delegate void TestDelegate();

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

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