summaryrefslogtreecommitdiff
path: root/mcs/errors/cs4014.cs
blob: 5ba2d04fe9b573d00797f121adf96f496a888c1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator
// Line: 18
// Compiler options: -warnaserror

using System;
using System.Threading.Tasks;

class C
{
	static Task Method ()
	{
		return Task.FromResult (1);
	}
	
	static async Task<int> TestAsync ()
	{
		Method ();
		return await Task.FromResult (2);
	}
}