Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / errors / cs4016.cs
1 // CS4016: `C.GetValue()': The return expression type of async method must be `int' rather than `Task<int>'
2 // Line: 12
3
4 using System;
5 using System.Threading.Tasks;
6
7 class C
8 {
9         public async Task<int> GetValue()
10         {
11                 await Task.FromResult (0);
12                 return Task.FromResult (1);
13         }
14 }