Author: marek
Date: 2008-01-22 03:42:27 -0500 (Tue, 22 Jan 2008)
New Revision: 93481

Added:
   trunk/mcs/errors/cs1503-4.cs
Log:
New test.



Added: trunk/mcs/errors/cs1503-4.cs
===================================================================
--- trunk/mcs/errors/cs1503-4.cs        2008-01-22 07:01:58 UTC (rev 93480)
+++ trunk/mcs/errors/cs1503-4.cs        2008-01-22 08:42:27 UTC (rev 93481)
@@ -0,0 +1,19 @@
+// CS1503: Argument 1: Cannot convert type `A' to `B'
+// Line: 17
+
+class A { }
+class B : A { }
+
+class Test
+{
+       static void Foo (out B b)
+       {
+               b = new B ();
+       }
+
+       static void Main ()
+       {
+               A a;
+               Foo (out a);
+       }
+}

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

Reply via email to