Merge branch 'master' of github.com:tgiphil/mono
[mono.git] / mcs / errors / cs1533.cs
1 // CS1533: Invoke cannot be called directly on a delegate
2 // Line : 11
3 // Compiler options: -langversion:ISO-1
4
5 public class TestClass
6 {
7         delegate void OneDelegate (int i);
8
9         static void Main()
10         {
11                 OneDelegate d = new OneDelegate (TestMethod);
12                 d.Invoke (1);
13         }
14         public static void TestMethod (int i)
15         {
16         }
17 }