[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / gtest-iter-24.cs
blob3fee4f7bb64d31ce49d141f08acd3fa58764cf6b
1 using System;
2 using System.Collections.Generic;
4 public class B : IDisposable
6 public void Dispose ()
10 public void DoSomething ()
15 public class C
17 public static IEnumerable<int> Test ()
19 using (var b = new B ()) {
20 Action a = () => b.DoSomething ();
21 a ();
23 yield return 1;
27 public static int Main ()
29 foreach (var e in Test ()) {
30 Console.WriteLine (e);
33 return 0;