Author: martin
Date: 2006-03-07 00:29:15 -0500 (Tue, 07 Mar 2006)
New Revision: 57646

Added:
   trunk/mcs/tests/gtest-252.cs
   trunk/mcs/tests/gtest-253.cs
Log:
New tests.

Added: trunk/mcs/tests/gtest-252.cs
===================================================================
--- trunk/mcs/tests/gtest-252.cs        2006-03-07 04:26:24 UTC (rev 57645)
+++ trunk/mcs/tests/gtest-252.cs        2006-03-07 05:29:15 UTC (rev 57646)
@@ -0,0 +1,20 @@
+using System;
+
+public static class EqualityComparer<T>
+{
+       readonly static Type sequencedequalityComparer = typeof 
(SequencedEqualityComparer<,>);
+
+       public static void Test ()
+       { }
+}
+
+public class SequencedEqualityComparer<T,W>
+{ }
+
+class X
+{
+       static void Main ()
+       {
+               EqualityComparer<int>.Test ();
+       }
+}


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

Added: trunk/mcs/tests/gtest-253.cs
===================================================================
--- trunk/mcs/tests/gtest-253.cs        2006-03-07 04:26:24 UTC (rev 57645)
+++ trunk/mcs/tests/gtest-253.cs        2006-03-07 05:29:15 UTC (rev 57646)
@@ -0,0 +1,45 @@
+using System;
+using SCG = System.Collections.Generic;
+
+public interface IExtensible<T>
+{
+       void AddAll<U> (SCG.IEnumerable<U> items)
+               where U : T;
+}
+
+public abstract class CollectionValueTester<R,S>
+       where R : IExtensible<S>
+{
+       protected R collection;
+}
+
+public class ExtensibleTester<U> : CollectionValueTester<U,int>
+       where U : IExtensible<int>
+{
+       public ExtensibleTester (U u)
+       {
+               this.collection = u;
+       }
+
+       public void Direct()
+       {
+               collection.AddAll<int> (new int[] { });
+       }
+}
+
+public class Extensible<V> : IExtensible<V>
+{
+       public void AddAll<W> (SCG.IEnumerable<W> items)
+               where W : V
+       { }
+}
+
+class X
+{
+       static void Main ()
+       {
+               Extensible<int> ext = new Extensible<int> ();
+               ExtensibleTester<Extensible<int>> tester = new 
ExtensibleTester<Extensible<int>> (ext);
+               tester.Direct ();
+       }
+}


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

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

Reply via email to