bring Mono Security to monotouch
[mcs.git] / tests / gtest-152.cs
blob35f062870bb7f24b0189cf4b8d8b51dd88a095d5
1 using System;
3 public interface IFoo
5 IFoo Hello ();
8 public interface IFoo<T> : IFoo
10 new IFoo<T> Hello ();
13 public interface ICollectionValue<T>: IFoo<T>
17 public interface ICollection<T>: ICollectionValue<T>
18 { }
20 public abstract class EnumerableBase<T> : IFoo<T>
22 public abstract IFoo<T> Hello();
24 IFoo IFoo.Hello ()
26 return Hello ();
30 public abstract class CollectionBase<T> : EnumerableBase<T>
34 public class HashBag<T>: CollectionBase<T>, ICollection<T>
36 public override IFoo<T> Hello ()
38 return this;
42 class X
44 static void Main ()