2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / gtest-249.cs
blob003bc5ff640bd5c65fc935c06bdf51175c19de27
1 using System;
2 using SCG = System.Collections.Generic;
4 public abstract class EnumerableBase<T> : SCG.IEnumerable<T>
6 public abstract SCG.IEnumerator<T> GetEnumerator();
8 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
10 return GetEnumerator();
14 public abstract class ArrayBase<T> : EnumerableBase<T>
16 public override SCG.IEnumerator<T> GetEnumerator()
18 yield break;
23 public class HashedArrayList<T> : ArrayBase<T>
25 public override SCG.IEnumerator<T> GetEnumerator()
27 return base.GetEnumerator();
31 class X
33 static void Main ()
34 { }