Author: marek
Date: 2007-10-11 13:11:37 -0400 (Thu, 11 Oct 2007)
New Revision: 87345

Added:
   trunk/mcs/errors/cs1620-2.cs
   trunk/mcs/errors/gcs1502-3.cs
   trunk/mcs/errors/gcs1503.cs
Modified:
   trunk/mcs/errors/known-issues-gmcs
   trunk/mcs/errors/known-issues-mcs
Log:
New tests + update



Added: trunk/mcs/errors/cs1620-2.cs
===================================================================
--- trunk/mcs/errors/cs1620-2.cs        2007-10-11 17:11:16 UTC (rev 87344)
+++ trunk/mcs/errors/cs1620-2.cs        2007-10-11 17:11:37 UTC (rev 87345)
@@ -0,0 +1,27 @@
+// CS1620: Argument `1' must be passed with the `ref' keyword
+// Line: 24
+
+public class X
+{
+       public void Foo (string[] b)
+       {
+       }
+       
+       public void Foo (ref string i)
+       {
+       }
+       
+       public void Foo (int i)
+       {
+       }
+}
+
+class D
+{
+       static void Main ()
+       {
+               X x = null;
+               x.Foo ("hola");
+       }
+}
+


Property changes on: trunk/mcs/errors/cs1620-2.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/errors/gcs1502-3.cs
===================================================================
--- trunk/mcs/errors/gcs1502-3.cs       2007-10-11 17:11:16 UTC (rev 87344)
+++ trunk/mcs/errors/gcs1502-3.cs       2007-10-11 17:11:37 UTC (rev 87345)
@@ -0,0 +1,14 @@
+// cs1502-3.cs: The best overloaded method match for `T.Blah(out int)' has 
some invalid arguments
+// Line: 11
+
+using System;
+
+class T {
+        static void Blah (out int g) { g = 0; }
+
+        static int Main (string [] args) {
+                IntPtr g;
+                Blah (out g);
+               return (int) g;
+        }
+}


Property changes on: trunk/mcs/errors/gcs1502-3.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/mcs/errors/gcs1503.cs
===================================================================
--- trunk/mcs/errors/gcs1503.cs 2007-10-11 17:11:16 UTC (rev 87344)
+++ trunk/mcs/errors/gcs1503.cs 2007-10-11 17:11:37 UTC (rev 87345)
@@ -0,0 +1,15 @@
+// CS1503:  Argument 1: Cannot convert type `bool' to `int[]'
+// Line: 13
+
+public class X
+{
+       public static void Test (params int[] a)
+       {
+       }
+
+       public static void Main()
+       {
+               int i;
+               Test (true);
+       }
+}


Property changes on: trunk/mcs/errors/gcs1503.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/mcs/errors/known-issues-gmcs
===================================================================
--- trunk/mcs/errors/known-issues-gmcs  2007-10-11 17:11:16 UTC (rev 87344)
+++ trunk/mcs/errors/known-issues-gmcs  2007-10-11 17:11:37 UTC (rev 87345)
@@ -27,7 +27,6 @@
 cs1521-3.cs
 cs1525.cs
 cs1528.cs
-cs1540-9.cs
 cs1586.cs
 cs1624-3.cs NO ERROR
 cs1670-2.cs

Modified: trunk/mcs/errors/known-issues-mcs
===================================================================
--- trunk/mcs/errors/known-issues-mcs   2007-10-11 17:11:16 UTC (rev 87344)
+++ trunk/mcs/errors/known-issues-mcs   2007-10-11 17:11:37 UTC (rev 87345)
@@ -23,7 +23,6 @@
 cs1521-3.cs
 cs1525.cs
 cs1528.cs
-cs1540-9.cs
 cs1586.cs
 cs1624-3.cs NO ERROR
 cs1670-2.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to