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

cs0123.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6c41ecafd7273a9d6100b9cf97947b93fc083f84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// cs0123.cs: Method 'MainClass.Delegate()' does not match delegate 'void TestDelegate()'
// Line: 12

delegate int TestDelegate(bool b);

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

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