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

32 lines
463 B
C#

using System.Collections.Generic;
interface IC<T> : IB<T>, IEnumerable<T>
{
}
interface IB<V> : IA<V>
{
}
interface IA<W> : IEnumerable<W>
{
}
class C : IC<short>
{
public IEnumerator<short> GetEnumerator ()
{
return null;
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator ()
{
throw new System.NotImplementedException ();
}
public static void Main ()
{
IC<short> ic = new C ();
var m2 = ic.GetEnumerator ();
}
}