[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-lambda-09.cs
1
2 using System.Collections.Generic;
3
4 delegate TD Func<TD>();
5 delegate TR Func<TA,TR>(TA arg);
6
7 public class C
8 {
9         static IEnumerable<T> Test<T> (T t)
10         {
11                 return null;
12         }
13         
14         static IEnumerable<T> Test<T> (Func<T> f)
15         {
16                 return null;
17         }
18         
19         static IEnumerable<T> Test2<T> (Func<T, T> f)
20         {
21                 return null;
22         }
23         
24         public static void Main ()
25         {
26                 IEnumerable<int> ie = Test (1);
27                 IEnumerable<string> se;
28                 se = Test (() => "a");
29                 se = Test (delegate () { return "a"; });
30                 se = Test2 ((string s) => "s");
31         }
32 }