[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs4014-3.cs
blob041137de43fe09a53d6ea3e817d57a88bdee9c9a
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 async Task<int> TestAsync ()
12 Func<Task> f = null;
13 f ();
14 return await Task.FromResult (2);