[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / tests / test-async-52.cs
1 using System;
2 using System.Threading.Tasks;
3
4 public delegate T ActualValueDelegate<T> ();
5
6 class X
7 {
8         public static void Main ()
9         {
10                 Matches (async () => await Throw());
11         }
12
13         static bool Matches<T>(ActualValueDelegate<T> del) where T : Task
14         {
15                 del ().Wait ();
16                 return true;
17         }
18
19         static async Task Throw()
20         {
21                 await Task.Delay (1);
22         }
23 }