[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / errors / cs1593.cs
blob486411486228df3119aa3c3c12817de915ff68a6
1 // CS1593: 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;