Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs4014-3.cs
1 // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator
2 // Line: 18
3 // Compiler options: -warnaserror
4
5 using System;
6 using System.Threading.Tasks;
7
8 class C
9 {
10         static async Task<int> TestAsync ()
11         {
12                 Func<Task> f = null;
13                 f ();
14                 return await Task.FromResult (2);
15         }
16 }