Merge pull request #1082 from esdrubal/bug19287
[mono.git] / mcs / errors / cs7094.cs
1 // CS7094: The `await' operator cannot be used in the filter expression of a catch clause
2 // Line: 12
3
4 using System.Threading.Tasks;
5
6 class Test
7 {
8         async static Task M1 ()
9         {
10                 try {
11                 }
12                 catch if (await Task.Factory.StartNew (() => false)) {
13                 }
14         }
15 }