[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / test-iter-17.cs
blobf31879a65ae2383736ce5d6866858e2c7982177c
1 using System;
2 using System.Collections;
4 class Program
6 static public IEnumerable Empty {
7 get {
8 object [] os = new object [] { };
9 foreach (object o in os) {
10 yield return o;
15 public static void Main()
17 IEnumerator enumerator = Empty.GetEnumerator();
18 if (enumerator.Current == null)
19 Console.WriteLine("Successful");
20 enumerator.MoveNext();
21 if (enumerator.Current == null)
22 Console.WriteLine("Successful");