Files
mono/mcs/errors/cs1533.cs
T
Marek Safar 0fc7f3f349 New tests.
svn path=/trunk/mcs/; revision=72973
2007-02-15 23:29:14 +00:00

18 lines
311 B
C#

// CS1533: Invoke cannot be called directly on a delegate
// Line : 11
// Compiler options: -langversion:ISO-1
public class TestClass
{
delegate void OneDelegate (int i);
static void Main()
{
OneDelegate d = new OneDelegate (TestMethod);
d.Invoke (1);
}
public static void TestMethod (int i)
{
}
}