2010-05-31 Jb Evain <jbevain@novell.com>
[mcs.git] / tests / gtest-anon-40.cs
blobe027b7e8570067472981513b4b8f1bdebbfd0a21
1 using System;
2 using System.Collections.Generic;
4 public static class RunTests
6 public static int Main ()
8 Test1.X.Run ();
9 return 0;
13 namespace Test1
15 delegate int Foo ();
17 public class X
19 public static void Test1<R> (R r, int a)
21 for (int b = a; b > 0; b--) {
22 R s = r;
23 Console.WriteLine (s);
24 Foo foo = delegate {
25 Console.WriteLine (b);
26 Console.WriteLine (s);
27 Console.WriteLine (a);
28 Console.WriteLine (r);
29 return 3;
31 a -= foo ();
35 public static void Run ()
37 Test1 (500L, 2);