1 using System
.Runtime
.CompilerServices
;
2 using System
.Threading
.Tasks
;
6 public static A
GetAwaiter (this int i
)
12 class A
: INotifyCompletion
20 void INotifyCompletion
.OnCompleted (System
.Action a
)
29 static async Task
<int> Test1 ()
32 return await checked (2);
35 static async Task
<int> Test2 ()
41 static async Task
Test3 ()
46 public static int Main ()
49 System
.Console
.WriteLine (r
.Result
);
54 System
.Console
.WriteLine (r
.Result
);