[mcs] Fixes codegen for type pattern matching in probing expressions over hoisted...
[mono.git] / mcs / tests / test-async-74.cs
1 using System;
2 using System.Threading.Tasks;
3
4 class AwaitGotoBug
5 {
6         public async Task Test()
7         {
8                 using ((IDisposable)null)
9                 {
10                         retry:
11
12                         if (Equals(1, 2))
13                         {
14                                 await Task.Yield();
15                                 goto retry;
16                         }
17                         else
18                         {
19                                 await Task.Yield();
20                         }
21                 }
22         }
23
24         public static void Main ()
25         {
26         }
27 }