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

cs4008.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f382fa49a6eba822307e5f372fa11a06db180ef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// CS4008: Cannot await void method `X.Foo()'. Consider changing method return type to `Task'
// Line: 10

using System.Threading.Tasks;

class X
{
	static async void Test ()
	{
		await Foo ();
	}
	
	static async void Foo ()
	{
		await Task.FromResult (1);
	}
}