[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs4014.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 Task Method ()
11         {
12                 return Task.FromResult (1);
13         }
14         
15         static async Task<int> TestAsync ()
16         {
17                 Method ();
18                 return await Task.FromResult (2);
19         }
20 }