[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-anon-162.cs
1 using System;
2 using System.Collections.Generic;
3
4 delegate void D (object param);
5
6 class T
7 {
8         void Assert (object a) { }
9         void Execute (Action a) { }
10
11         private D GetD<T> (object input)
12         {
13                 return delegate (object param) {
14                         IList<object> col = null;
15
16                         try {
17                                 object v = null;
18
19                                 Execute (() => {
20                                                 v = col[0];
21                                                 Assert (input);
22                                         });
23                         } finally {
24                         }
25                 };
26         }
27
28         public static void Main ()
29         {
30                 new T ().GetD<long> (null) (9);
31         }
32 }