[interp] Fall back to old implementation when calling on proxy
[mono-project.git] / mcs / tests / test-anon-63.cs
blobf3bf68c590402e52d537ebf773103ef1806d0a52
1 using System;
2 using System.Collections;
4 class X {
5 delegate int A ();
7 static IEnumerator GetIt (int [] args)
9 foreach (int arg in args) {
10 Console.WriteLine ("OUT: {0}", arg);
11 A a = delegate {
12 Console.WriteLine ("arg: {0}", arg);
13 Console.WriteLine ("args: {0}", args);
14 return arg;
16 yield return a ();
20 public static int Main ()
22 IEnumerator enumerator = GetIt (new int [] { 4, 8, 9});
23 enumerator.MoveNext ();
24 return 0;