2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git] / tests / test-anon-75.cs
blob105b4f45137aa5011811bdf53e64d1e96fd881b3
1 using System;
3 delegate bool D ();
5 class Data
7 public D d;
10 public class Test
12 int value;
13 D change;
15 static void Foo (int i, D d)
19 public static void Main ()
23 void TestMe ()
25 if (true) {
26 Data data = null;
27 if (data != null) {
28 D d2 = delegate { return true; };
29 change += d2;
31 data.d += delegate {
32 change -= d2;
33 Foo (10, delegate {
34 data = null;
35 return false;
38 return true;