Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1593.cs
1 // CS1593: Delegate `Blah.MyDelegate' does not take `1' arguments
2 // Line : 21
3
4 using System;
5
6 public class Blah {
7
8         public delegate int MyDelegate (int i, int j);
9         
10         public int Foo (int i, int j)
11         {
12                 return i+j;
13         }
14
15         public static int Main ()
16         {
17                 Blah i = new Blah ();
18
19                 MyDelegate del = new MyDelegate (i.Foo);
20
21                 int number = del (2);
22
23                 if (number == 5)
24                         return 0;
25                 else
26                         return 1;
27
28         }
29
30 }