Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-69.cs
1 using System;
2
3 public delegate object TargetAccessDelegate (object user_data);
4
5 public class SingleSteppingEngine
6 {
7         bool engine_stopped;
8
9         object SendCommand (TargetAccessDelegate target)
10         {
11                 return target (null);
12         }
13
14         public void Detach ()
15         {
16                 SendCommand (delegate {
17                         if (!engine_stopped) {
18                                 throw new InvalidOperationException ();
19                         }
20
21                         return null;
22                 });
23         }
24 }
25
26 class X
27 {
28         public static void Main ()
29         { }
30 }