[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / errors / cs4011-4.cs
1 // CS4011: The awaiter type `A' must have suitable IsCompleted and GetResult members
2 // Line: 16
3
4 static class S
5 {
6         public static A GetAwaiter (this int i)
7         {
8                 return new A ();
9         }
10 }
11
12 class A
13 {
14         bool IsCompleted {
15                 get {
16                         return true;
17                 }
18         }
19         
20         void OnCompleted (System.Action a)
21         {
22         }
23         
24         static async void Test ()
25         {
26                 await 9;
27         }
28 }