blob: aa9afe42ee27ff7e7ab2531b48474129f5441ff3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// CS4014: The statement is not awaited and execution of current method continues before the call is completed. Consider using `await' operator
// Line: 17
// Compiler options: -warnaserror
using System;
using System.Threading.Tasks;
class C
{
static Task Method ()
{
return Task.FromResult (1);
}
static void TestAsync ()
{
Func<Task> a = async () => {
await Method ();
Method ();
};
}
}
|