[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / errors / cs4014-5.cs
1 // CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator or calling `Wait' method
2 // Line: 17
3 // Compiler options: -warnaserror
4
5 using System;
6 using System.Threading.Tasks;
7
8 class C
9 {
10     public static async Task<T> Test<T> ()
11     {
12         return await Task.FromResult (default (T));
13     }
14
15     static void Main ()
16     {
17         Test<object> ();
18     }
19 }