1 // Compiler options: -langversion:default
4 using System.Collections;
8 public IEnumerable Foo (int a)
20 Test test = new Test ();
22 IEnumerable a = test.Foo (5);
24 IEnumerator c = a.GetEnumerator ();
27 if ((int) c.Current != 5)
31 if ((int) c.Current != 25)
34 IEnumerator d = a.GetEnumerator ();
36 if ((int) c.Current != 25)
40 if ((int) c.Current != 25)
42 if ((int) d.Current != 5)
48 ((IDisposable) a).Dispose ();