Initial set of Ward sgen annotations (#5705)
[mono.git] / mcs / errors / cs4011-2.cs
1 // CS4011: The awaiter type `int' must have suitable IsCompleted and GetResult members
2 // Line: 16
3
4 static class S
5 {
6         public static int GetAwaiter (this int i)
7         {
8                 return 1;
9         }
10 }
11
12 class A
13 {
14         static async void Test ()
15         {
16                 await 9;
17         }
18 }