[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-lambda-07.cs
1
2
3 // Lambda parser tests
4
5 delegate void D ();
6 delegate void E (bool b);
7
8 public class C
9 {
10         static void Test (D d)
11         {
12         }
13         
14         static void Test (object o, D d)
15         {
16         }
17         
18         static void Test (D d1, D d2)
19         {
20         }
21
22         static void Test2 (object o, E e)
23         {
24         }
25
26         public static void Main ()
27         {
28                 D e = () => { };
29                 e = (D)null;
30                 e = default (D);
31
32                 Test (() => { });
33                 Test (1, () => { });
34                 Test (() => { }, () => { });
35                 Test2 (null, (foo) => { });
36         }
37 }