Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

31 lines
412 B
C#

// CS1594: Delegate `Blah.MyDelegate' has some invalid arguments
// Line : 21
using System;
public class Blah {
public delegate int MyDelegate (int i, int j);
public int Foo (int i, int j)
{
return i+j;
}
public static int Main ()
{
Blah i = new Blah ();
MyDelegate del = new MyDelegate (i.Foo);
int number = del (2, "a string");
if (number == 5)
return 0;
else
return 1;
}
}