retag
[mcs.git] / errors / cs1594.cs
blob4faf903213d5d5700f35ebd122a69ee90ee49718
1 // cs1594.cs: Delegate `Blah.MyDelegate' has some invalid 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, "a string");
23 if (number == 5)
24 return 0;
25 else
26 return 1;