Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

48 lines
592 B
C#

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
{
public static void Main ()
{
}
}