Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

25 lines
352 B
C#

// Bug #80314
using System.Collections.Generic;
using System.Collections;
public class Temp<T> : IEnumerable<Temp<T>.Foo>
{
public class Foo { }
public IEnumerator<Temp<T>.Foo> GetEnumerator()
{
yield return new Foo ();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}
class X
{
public static void Main ()
{ }
}