[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-lambda-05.cs
1
2
3 using System;
4
5 public class C
6 {
7         
8         delegate int di (int x);
9         delegate string ds (string s);
10         delegate bool db (bool x);
11
12         static bool M (db d) { return d (false); }
13         static string M (ds d) { return "b"; }
14         static int M (di d) { return d (0); }
15         
16         public static int Main ()
17         {
18                 string[] s = new string[] { "1" };
19                 int[] i = new int[] { 1 };
20                 
21                 string s_res = M (x=> M (y=> x.ToLower ()));
22                 int i_res = M (x=> M (y=> (x * 0) + 5));
23                 
24                 if (s_res != "b")
25                         return 1;
26                 
27                 if (i_res != 5)
28                         return 2;
29                 
30                 return 0;
31         }
32 }