Update dependencies from https://github.com/dotnet/arcade build 20190729.1 (#15881)
[mono-project.git] / mcs / tests / test-async-52.cs
blob36230acd7761050253b266c90c0ff424cd46e46b
1 using System;
2 using System.Threading.Tasks;
4 public delegate T ActualValueDelegate<T> ();
6 class X
8 public static void Main ()
10 Matches (async () => await Throw());
13 static bool Matches<T>(ActualValueDelegate<T> del) where T : Task
15 del ().Wait ();
16 return true;
19 static async Task Throw()
21 await Task.Delay (1);