1 // CS0411: The type arguments for method `AsyncTypeInference.Test2<T>(System.Func<int,T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
3 // Compiler options: -langversion:future
6 using System.Threading.Tasks;
8 class AsyncTypeInference
10 public static int Main ()
12 Test2 (async l => { await TT (); return null; } );
18 return Task.Factory.StartNew (() => 2);
21 static void Test2<T> (Func<int, T> arg)