Merged into single file, added assertions
[mono.git] / mcs / tests / gtest-442.cs
1 public abstract class NonGenericBase
2 {
3         public abstract int this[int i] { get; }
4 }
5
6 public abstract class GenericBase<T> : NonGenericBase
7         where T : GenericBase<T>
8 {
9         T Instance { get { return default (T); } }
10
11         public void Foo ()
12         {
13                 int i = Instance[10];
14         }
15 }
16
17 public class EntryPoint
18 {
19         static void Main () { }
20 }