summaryrefslogtreecommitdiff
path: root/mcs/errors/cs4014-3.cs
blob: 041137de43fe09a53d6ea3e817d57a88bdee9c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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 async Task<int> TestAsync ()
	{
		Func<Task> f = null;
		f ();
		return await Task.FromResult (2);
	}
}