Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-async-09.cs
1 using System;
2 using System.Threading.Tasks;
3
4 class Test
5 {
6         static int Foo<T> (Func<T, Task<int>> f)
7         {
8                 return 1;
9         }
10         
11         static int Foo<T> (Func<T, Task<short>> f)
12         {
13                 return 2;
14         }
15
16         public static int Main ()
17         {
18                 if (Foo (async (string str) => (short) 1) != 2)
19                         return 1;
20                 
21                 return 0;
22         }
23 }