"disable_omit_fp" can now be included in MONO_DEBUG
[mono-project.git] / mcs / errors / cs4014.cs
blob5ba2d04fe9b573d00797f121adf96f496a888c1e
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
5 using System;
6 using System.Threading.Tasks;
8 class C
10 static Task Method ()
12 return Task.FromResult (1);
15 static async Task<int> TestAsync ()
17 Method ();
18 return await Task.FromResult (2);