2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mcs.git] / tests / test-anon-63.cs
blob97fa75c97bca72b023677ed66be9e6614ae1c7ff
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 static int Main ()
22 IEnumerator enumerator = GetIt (new int [] { 4, 8, 9});
23 enumerator.MoveNext ();
24 return 0;