Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-async-62.cs
1 using System.Linq;
2 using System.Collections.Generic;
3 using System.Threading.Tasks;
4
5 public class Model
6 {
7 }
8
9 public class Tests<X>
10 {
11
12     Task DeleteClient (Model m)
13     {
14         return null;
15     }
16
17     public async Task Delete<T> (IEnumerable<T> models)
18         where T : Model
19     {
20         await Task.WhenAll (models.Select ((model) => DeleteClient (model)));
21     }
22 }
23
24 class O
25 {
26     public static void Main ()
27     {
28         new Tests<long> ().Delete (new Model[0]).Wait ();
29     }
30 }