[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-anon-150.cs
1 class M
2 {
3         public static int Main ()
4         {
5                 new SomeGenericClass<int>().FailsToCompile ();
6                 return 0;
7         }
8 }
9
10 class SomeGenericClass<SomeType>
11 {
12         object someValue;
13         delegate void SomeHandlerType ();
14
15         void Invoke (SomeHandlerType h)
16         {
17                 h ();
18         }
19
20         public void FailsToCompile ()
21         {
22                 Invoke (delegate {
23                         object someObject = 1;
24                         Invoke (delegate {
25                                 someValue = someObject;
26                         });
27                 });
28         }
29 }
30