bring Mono Security to monotouch
[mcs.git] / tests / test-anon-78.cs
blob9f8b8e47cd7202e49d26a53e94a9993432239b29
1 using System;
3 delegate void D1 ();
4 delegate void D2 ();
6 public class DelegateTest {
7 static void Foo (D1 d)
9 d ();
12 static void Foo (D2 d)
16 static int counter = 99;
17 public static int Main ()
19 Foo (new D1 (delegate {
20 counter = 82;
21 Console.WriteLine ("In");
22 }));
24 if (counter != 82)
25 return 1;
27 return 0;