Files
mono/mcs/errors/cs1593.cs
T
Marek Safar 0c31213775 error messages review
svn path=/trunk/mcs/; revision=46724
2005-06-29 14:55:08 +00:00

31 lines
404 B
C#

// cs1593.cs: Delegate `Blah.MyDelegate' does not take `1' 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);
if (number == 5)
return 0;
else
return 1;
}
}