Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs4034.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d8afd1e1dc1f0f20b618e3d28a52900e6b507fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// CS4034: The `await' operator can only be used when its containing lambda expression is marked with the `async' modifier
// Line: 11

using System;
using System.Threading.Tasks;

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