Author: marek
Date: 2006-09-24 09:03:14 -0400 (Sun, 24 Sep 2006)
New Revision: 65851

Added:
   trunk/mcs/errors/cs1503.cs
   trunk/mcs/errors/cs1688.cs
Log:
New tests.

Added: trunk/mcs/errors/cs1503.cs
===================================================================
--- trunk/mcs/errors/cs1503.cs  2006-09-24 13:02:30 UTC (rev 65850)
+++ trunk/mcs/errors/cs1503.cs  2006-09-24 13:03:14 UTC (rev 65851)
@@ -0,0 +1,17 @@
+// CS1503: Argument 1: Cannot convert from `int' to `bool'
+// Line: 15
+
+class A
+{
+       public static void Foo (bool test)
+       {
+       }
+}
+
+class B
+{
+       public static void Main()
+       {
+               A.Foo (1);
+       }
+}
\ No newline at end of file

Added: trunk/mcs/errors/cs1688.cs
===================================================================
--- trunk/mcs/errors/cs1688.cs  2006-09-24 13:02:30 UTC (rev 65850)
+++ trunk/mcs/errors/cs1688.cs  2006-09-24 13:03:14 UTC (rev 65851)
@@ -0,0 +1,15 @@
+// CS1688: Cannot convert anonymous method block without a parameter list to 
delegate type `C.WithOutParam' because it has one or more `out' parameters
+// Line: 10
+
+class C
+{
+       delegate void WithOutParam (out string value);
+
+    static void Main() 
+    {
+        WithOutParam o = delegate
+                       { 
+                               return;
+                       };
+    }
+}
\ No newline at end of file

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

Reply via email to