cleol
[mcs.git] / tests / gtest-anon-8.cs
blob5712fb9d8fb7b624aeee53a02c45b4717e1b62e3
1 using System;
2 using System.Collections.Generic;
4 delegate int Foo ();
6 class X
8 static void Main ()
10 Test ("Hello World", 8);
13 public static void Test<R> (R r, int a)
15 for (int b = a; b > 0; b--) {
16 R s = r;
17 Foo foo = delegate {
18 Console.WriteLine (b);
19 Console.WriteLine (s);
20 return 3;
22 a -= foo ();