Author: martin
Date: 2005-12-14 17:13:01 -0500 (Wed, 14 Dec 2005)
New Revision: 54416

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

Added: trunk/mcs/tests/gtest-229.cs
===================================================================
--- trunk/mcs/tests/gtest-229.cs        2005-12-14 22:11:26 UTC (rev 54415)
+++ trunk/mcs/tests/gtest-229.cs        2005-12-14 22:13:01 UTC (rev 54416)
@@ -0,0 +1,23 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+public class B : IComparable<B> {
+       public int CompareTo (B b)
+       {
+               return 0;
+       }
+}
+
+public class Tester
+{
+       static int Main ()
+       {
+               B b = new B ();
+
+               // This should be false
+               if (b is IComparable<object>)
+                       return 1;
+               return 0;
+       }
+}

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

Reply via email to