[interp] Reduce computation under calc_section mutex
[mono-project.git] / mcs / tests / test-async-90.cs
blob8b1adc66e4230133adeb5a8f2aa6a44d538b8e8e
1 using System.Threading.Tasks;
3 static class Y
5 public static string ExCall (this X x)
7 return null;
11 class X
13 static X Test (object o)
15 return null;
18 X Prop { get; set;}
20 X Call ()
22 return null;
25 public static void Main ()
27 var x = new X ();
28 x.Test ().Wait ();
31 async Task Test ()
33 var x = X.Test (await Task.FromResult (1))?.Prop?.ExCall ();