Changed TryPeek to handle race condition with Dequeue.
[mono.git] / mcs / errors / cs1985.cs
1 // CS1985: The `await' operator cannot be used in a catch clause
2 // Line: 13
3
4 using System;
5 using System.Threading.Tasks;
6
7 class C
8 {
9         public async Task Test ()
10         {
11                 try {
12                 } catch {
13                         await Call ();
14                 }
15         }
16         
17         static Task Call ()
18         {
19                 return null;
20         }
21 }