[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs4014-2.cs
blobaa9afe42ee27ff7e7ab2531b48474129f5441ff3
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
5 using System;
6 using System.Threading.Tasks;
8 class C
10 static Task Method ()
12 return Task.FromResult (1);
15 static void TestAsync ()
17 Func<Task> a = async () => {
18 await Method ();
19 Method ();