[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs0411-8.cs
1 // CS0411: The type arguments for method `C.Test<TR,TA>(C.Func<TR,TA>, C.Func<TR,TA>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
2 // Line: 16
3
4
5 public class C
6 {
7         public delegate T1 Func<T1, T2> (T2 t);
8         
9         public static TR Test<TR, TA> (Func<TR, TA> f, Func<TR, TA> f2)
10         {
11                 return default (TR);
12         }
13         
14         public static void Main()
15         {
16                 int s = Test (delegate (int i) { return 0; }, delegate (int i) { return "a"; });
17         }
18 }