summaryrefslogtreecommitdiff
path: root/mcs/errors/cs4035.cs
blob: d50d5feb1a41c58111388d6c7ff464b1640cd29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS4035: The `await' operator can only be used when its containing anonymous method is marked with the `async' modifier
// Line: 11

using System;
using System.Threading.Tasks;

class C
{
	public void Test ()
	{
		Action a = delegate { await Task.FromResult (1); };
	}
}