TaskAwaiter from CoreFX
[mono-project.git] / mcs / errors / cs4014-4.cs
blobc6bbf9d847cb1c3e54e3be746764fd172369fbb9
1 // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator
2 // Line: 12
3 // Compiler options: -warnaserror
5 using System;
6 using System.Threading.Tasks;
8 class C
10 static async Task<int> TestAsync ()
12 new Task (() => {});
13 return await Task.FromResult (2);