Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git] / mcs / errors / cs4016.cs
blob8d3d4359c0b2f5755e2ec6c6e711833d972660f9
1 // CS4016: `C.GetValue()': The return expression type of async method must be `int' rather than `Task<int>'
2 // Line: 12
4 using System;
5 using System.Threading.Tasks;
7 class C
9 public async Task<int> GetValue()
11 await Task.FromResult (0);
12 return Task.FromResult (1);