New test.
authorMartin Baulig <martin@novell.com>
Fri, 29 Apr 2005 06:23:35 +0000 (06:23 -0000)
committerMartin Baulig <martin@novell.com>
Fri, 29 Apr 2005 06:23:35 +0000 (06:23 -0000)
svn path=/trunk/mcs/; revision=43771

mcs/tests/gen-152.cs [new file with mode: 0755]

diff --git a/mcs/tests/gen-152.cs b/mcs/tests/gen-152.cs
new file mode 100755 (executable)
index 0000000..35f0628
--- /dev/null
@@ -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 ()
+       {
+       }
+}