2009-09-02 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / cs1593.cs
blob7dab4815b5c23ad5d2a1916c7a2e3d1ee92912f2
1 // cs1593.cs: Delegate `Blah.MyDelegate' does not take `1' arguments
2 // Line : 21
4 using System;
6 public class Blah {
8 public delegate int MyDelegate (int i, int j);
10 public int Foo (int i, int j)
12 return i+j;
15 public static int Main ()
17 Blah i = new Blah ();
19 MyDelegate del = new MyDelegate (i.Foo);
21 int number = del (2);
23 if (number == 5)
24 return 0;
25 else
26 return 1;