Add file to demonstrate error -11
authorRavi Pratap M <ravi@mono-cvs.ximian.com>
Fri, 19 Oct 2001 08:55:19 +0000 (08:55 -0000)
committerRavi Pratap M <ravi@mono-cvs.ximian.com>
Fri, 19 Oct 2001 08:55:19 +0000 (08:55 -0000)
svn path=/trunk/mcs/; revision=1182

mcs/errors/cs-11.cs [new file with mode: 0644]

diff --git a/mcs/errors/cs-11.cs b/mcs/errors/cs-11.cs
new file mode 100644 (file)
index 0000000..5adc40a
--- /dev/null
@@ -0,0 +1,20 @@
+// cs-11.cs : Delegate creation expression takes only one argument
+// Line : 17
+
+public class Blah {
+
+       public delegate int MyDelegate (int i, int j);
+
+       public int Foo (int i, int j)
+       {
+               return i+j;
+       }
+
+       public static void Main ()
+       {
+               Blah i = new Blah ();
+
+               MyDelegate del = new MyDelegate ();
+       }
+}
+