Update mcs/class/System.Core/System/TimeZoneInfo.cs
[mono.git] / mcs / tests / test-async-09.cs
1 // Compiler options: -langversion:future
2
3 using System;
4 using System.Threading.Tasks;
5
6 class Test
7 {
8         static int Foo<T> (Func<T, Task<int>> f)
9         {
10                 return 1;
11         }
12         
13         static int Foo<T> (Func<T, Task<short>> f)
14         {
15                 return 2;
16         }
17
18         static int Main ()
19         {
20                 if (Foo (async (string str) => (short) 1) != 2)
21                         return 1;
22                 
23                 return 0;
24         }
25 }