Merge pull request #495 from nicolas-raoul/fix-for-issue2907-with-no-formatting-changes
[mono.git] / mcs / tests / gtest-319.cs
1 // Bug #80314
2 using System.Collections.Generic;
3 using System.Collections;
4
5 public class Temp<T> : IEnumerable<Temp<T>.Foo>
6 {
7         public class Foo { }
8
9         public IEnumerator<Temp<T>.Foo> GetEnumerator()
10         {
11                 yield return new Foo ();
12         }
13
14         IEnumerator IEnumerable.GetEnumerator()
15         {
16                 return GetEnumerator();
17         }
18 }
19
20 class X
21 {
22         public static void Main ()
23         { }
24 }