Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-async-38.cs
1 using System;
2 using System.Threading.Tasks;
3
4 class C
5 {
6         void Test ()
7         {
8                 Func<Task<int>> f = async () => {
9                         await GetResultsAsync (null);
10                         return 2;
11                 };
12
13                 f ();
14         }
15
16         Task<int> GetResultsAsync (object arg)
17         {
18                 return null;
19         }
20
21         public static void Main ()
22         {
23                 new C ().Test ();
24         }
25 }