Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / tests / gtest-326-lib.cs
1 // Compiler options: /t:library
2 using System;
3 using SCG = System.Collections.Generic;
4
5 namespace C5
6 {
7         public abstract class EnumerableBase<T> : SCG.IEnumerable<T>
8         {
9                 public abstract SCG.IEnumerator<T> GetEnumerator ();
10
11                 System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
12                 {
13                         return GetEnumerator();
14                 }
15         }
16
17         public class ArrayBase<T> : EnumerableBase<T>
18         {
19                 public override SCG.IEnumerator<T> GetEnumerator ()
20                 {
21                         yield break;
22                 }
23         }
24
25         public class ArrayList<T> : ArrayBase<T>
26         {
27                 public override SCG.IEnumerator<T> GetEnumerator ()
28                 {
29                         return base.GetEnumerator ();
30                 }
31         }
32 }