Author: martin
Date: 2005-04-29 02:23:35 -0400 (Fri, 29 Apr 2005)
New Revision: 43771

Added:
   trunk/mcs/tests/gen-152.cs
Log:
New test.


Added: trunk/mcs/tests/gen-152.cs
===================================================================
--- trunk/mcs/tests/gen-152.cs  2005-04-29 05:59:16 UTC (rev 43770)
+++ trunk/mcs/tests/gen-152.cs  2005-04-29 06:23:35 UTC (rev 43771)
@@ -0,0 +1,47 @@
+using System;
+
+public interface IFoo
+{
+       IFoo Hello ();
+}
+
+public interface IFoo<T> : IFoo
+{
+       new IFoo<T> Hello ();
+}
+
+public interface ICollectionValue<T>: IFoo<T>
+{
+}
+
+public interface ICollection<T>: ICollectionValue<T>
+{ }
+
+public abstract class EnumerableBase<T> : IFoo<T>
+{
+       public abstract IFoo<T> Hello();
+
+       IFoo IFoo.Hello ()
+       {
+               return Hello ();
+       }
+}
+
+public abstract class CollectionBase<T> : EnumerableBase<T>
+{
+}
+
+public class HashBag<T>: CollectionBase<T>, ICollection<T>
+{
+       public override IFoo<T> Hello ()
+       {
+               return this;
+       }
+}
+
+class X
+{
+       static void Main ()
+       {
+       }
+}


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

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

Reply via email to