blob: 8d3d4359c0b2f5755e2ec6c6e711833d972660f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// CS4016: `C.GetValue()': The return expression type of async method must be `int' rather than `Task<int>'
// Line: 12
using System;
using System.Threading.Tasks;
class C
{
public async Task<int> GetValue()
{
await Task.FromResult (0);
return Task.FromResult (1);
}
}
|