[interp] Don't check for exception in native wrappers (#14184)
[mono-project.git] / mcs / errors / cs4027.cs
blob6d1a4e6fd0940a44c17f46b7ebce302c9ee3f9c7
1 // CS4027: The awaiter type `A' must implement interface `System.Runtime.CompilerServices.INotifyCompletion'
2 // Line: 33
4 using System.Threading.Tasks;
6 static class S
8 public static A GetAwaiter (this int i)
10 return new A ();
14 class A
16 bool IsCompleted {
17 get {
18 return true;
22 public void OnCompleted (System.Action a)
26 int GetResult ()
28 return 3;
31 static async Task<int> Test1 ()
33 await 1;