a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
15 lines
278 B
C#
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);
|
|
}
|
|
}
|