Author: marek
Date: 2008-02-18 09:35:15 -0500 (Mon, 18 Feb 2008)
New Revision: 96052

Added:
   trunk/mcs/errors/cs1502-10.cs
   trunk/mcs/errors/cs1503-5.cs
Log:
Add new tests.



Added: trunk/mcs/errors/cs1502-10.cs
===================================================================
--- trunk/mcs/errors/cs1502-10.cs       2008-02-18 14:34:57 UTC (rev 96051)
+++ trunk/mcs/errors/cs1502-10.cs       2008-02-18 14:35:15 UTC (rev 96052)
@@ -0,0 +1,26 @@
+// CS1502: The best overloaded method match for `foo.p(string, object, 
object)' has some invalid arguments
+// Line: 24
+
+using System;
+
+public class foo
+{
+       static int intval = 3;
+
+       public static void voidfunc()
+       {
+       }
+       
+       static void p (string s, object o1, object o2)
+       {
+       }
+       
+       static void p (string s, params object[] o)
+       {
+       }
+
+       public static void Main()
+       {
+               p ("Whoops: {0} {1}", intval, voidfunc());
+       }
+}

Added: trunk/mcs/errors/cs1503-5.cs
===================================================================
--- trunk/mcs/errors/cs1503-5.cs        2008-02-18 14:34:57 UTC (rev 96051)
+++ trunk/mcs/errors/cs1503-5.cs        2008-02-18 14:35:15 UTC (rev 96052)
@@ -0,0 +1,16 @@
+// CS1503: Argument 5: Cannot convert type `void' to `object'
+// Line: 14
+
+using System;
+
+public class foo
+{
+       public static void voidfunc()
+       {
+       }
+
+       public static void Main()
+       {
+               Console.WriteLine ("Whoops: {0} {1}", 0, 1, 2, voidfunc());
+       }
+}

_______________________________________________
Mono-patches maillist  -  Mono-patches@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to