[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / test-anon-72.cs
1 public class Test
2 {
3         public delegate bool UnaryOperator(object self, out object res);
4         public void AddOperator(UnaryOperator target) {}
5         public bool TryGetValue(object self, out object value)
6         {
7                 value = null;
8                 return false;
9         }
10     
11         public static void Main ()
12         {
13         }
14         
15         void Foo ()
16         {
17                 AddOperator (delegate(object self, out object res) {
18                         object value;
19                         if (TryGetValue(self, out value)) {
20                                 res = value;
21                                 if (res != null) return true;
22                         }
23                         res = null;
24                         return false;
25                 });
26         }
27 }