[mini] Fix test compiling when running !MOBILE
[mono.git] / mcs / tests / test-async-80.cs
1 using System.Threading.Tasks;
2 using System;
3
4 class X
5 {
6         public async Task Test<T, U> (int arg)
7         {
8                 await Task.Run (async () => {
9                                         await Task.Run (async () => {
10                                                 Console.WriteLine (this);
11                                         });
12                                 return arg;
13                         }
14                 );
15         }
16
17         public static void Main ()
18         {
19                 new X().Test<int, long>(1).Wait ();
20         }
21 }