[mcs] Consider method candidates with misplaced named arguments not applicable. Fixes...
[mono.git] / mcs / errors / cs4014-2.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: 17
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 void TestAsync ()
16         {
17                 Func<Task> a = async () => {
18                         await Method ();
19                         Method ();
20                 };
21         }
22 }