Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

15 lines
278 B
C#

// 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);
}
}