[mono/tests] Fix out of tree build.
[mono-project.git] / mcs / tests / test-async-68.cs
blobf101c9460e16d290cf214d7f67e1e101ac5483be
1 using System.Threading.Tasks;
3 class X
5 public async Task ReturnsTaskAsync (Task task)
7 await task;
10 public async Task<Task> ReturnsTaskOfTaskAsync ()
12 var t1 = Task.FromResult (ReturnsTaskAsync (null));
13 await t1;
14 Task<Task> t2 = Task.FromResult (ReturnsTaskAsync (null));
15 return t2;
18 public static void Main ()
20 new X ().ReturnsTaskOfTaskAsync ().Wait ();