codeowners update
[mono.git] / mcs / errors / cs0411-22.cs
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
3
4 using System;
5 using System.Threading.Tasks;
6
7 class AsyncTypeInference
8 {
9         public static int Main ()
10         {
11                 Test2 (async l => { await TT (); return null; } );
12                 return 0;
13         }
14         
15         static Task TT ()
16         {
17                 return Task.Factory.StartNew (() => 2);
18         }
19
20         static void Test2<T> (Func<int, T> arg)
21         {
22                 arg (0);
23         }
24 }