2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / gcs0411-8.cs
blobe72b36e3e40290ccaa1938bfd9781aa856ab713a
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
5 public class C
7 public delegate T1 Func<T1, T2> (T2 t);
9 public static TR Test<TR, TA> (Func<TR, TA> f, Func<TR, TA> f2)
11 return default (TR);
14 public static void Main()
16 int s = Test (delegate (int i) { return 0; }, delegate (int i) { return "a"; });