a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
463 B
C#
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 ();
|
|
}
|
|
} |