Merge pull request #3997 from lateralusX/jlorenss/win-api-family-support-safearray
[mono.git] / mcs / errors / cs4008.cs
1 // CS4008: Cannot await void method `X.Foo()'. Consider changing method return type to `Task'
2 // Line: 10
3
4 using System.Threading.Tasks;
5
6 class X
7 {
8         static async void Test ()
9         {
10                 await Foo ();
11         }
12         
13         static async void Foo ()
14         {
15                 await Task.FromResult (1);
16         }
17 }