New test.
[mono.git] / mcs / errors / cs1533.cs
1 // cs1533 : Invoke cannot be called directly on a delegate
2 // Line : 11
3
4 public class TestClass
5 {
6         delegate void OneDelegate (int i);
7
8         static void Main()
9         {
10                 OneDelegate d = new OneDelegate (TestMethod);
11                 d.Invoke (1);
12         }
13         public static void TestMethod (int i)
14         {
15         }
16 }