summaryrefslogtreecommitdiff
path: root/mcs/errors/cs7094.cs
blob: d20ff207edc7d9dd5eafcb3fbaf65466f647c8f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS7094: The `await' operator cannot be used in the filter expression of a catch clause
// Line: 12

using System.Threading.Tasks;

class Test
{
	async static Task M1 ()
	{
		try {
		}
		catch when (await Task.Factory.StartNew (() => false)) {
		}
	}
}