[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs0411-22.cs
blob3173aa595c5ac7ae12281b3541fc9304725b1d6c
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
2 // Line: 11
4 using System;
5 using System.Threading.Tasks;
7 class AsyncTypeInference
9 public static int Main ()
11 Test2 (async l => { await TT (); return null; } );
12 return 0;
15 static Task TT ()
17 return Task.Factory.StartNew (() => 2);
20 static void Test2<T> (Func<int, T> arg)
22 arg (0);