[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs4014-4.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: 12
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                 new Task (() => {});
13                 return await Task.FromResult (2);
14         }
15 }