Merge pull request #167 from konrad-kruczynski/send_async_fix
[mono.git] / mcs / errors / cs1986.cs
1 // CS1986: The `await' operand type `A' must have suitable GetAwaiter method
2 // Line: 15
3 // Compiler options: -langversion:future
4
5 static class S
6 {
7         public static void GetAwaiter (this int i)
8         {
9         }
10 }
11
12 class A
13 {
14         bool GetAwaiter;
15         
16         static async void Test ()
17         {
18                 await new A ();
19         }
20 }