Author: martin
Date: 2005-06-20 11:49:46 -0400 (Mon, 20 Jun 2005)
New Revision: 46242

Added:
   trunk/mcs/tests/gtest-169.cs
Log:
New test.

Added: trunk/mcs/tests/gtest-169.cs
===================================================================
--- trunk/mcs/tests/gtest-169.cs        2005-06-20 15:49:37 UTC (rev 46241)
+++ trunk/mcs/tests/gtest-169.cs        2005-06-20 15:49:46 UTC (rev 46242)
@@ -0,0 +1,20 @@
+class list <A> {
+       public class Cons <T> : list <T> {   }
+       public class Nil <T> : list <T> {  }
+}
+
+class C {
+       public static void Rev<T> (list <T> y) {
+               if (y is list<object>.Cons<T>)
+                       System.Console.WriteLine ("Cons");
+               if (y is list<object>.Nil<T>)
+                       System.Console.WriteLine ("Nil");
+       }
+}
+
+class M {
+       static void Main () { 
+               C.Rev (new list<object>.Cons <string> ());
+               C.Rev (new list<object>.Nil <string> ());
+        }
+}


Property changes on: trunk/mcs/tests/gtest-169.cs
___________________________________________________________________
Name: svn:executable
   + *

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

Reply via email to