[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / test-async-50.cs
blobad9f004a91634fea284ba426313a0935681d0dc8
1 using System.Threading.Tasks;
2 using System;
4 class X
6 static void Main ()
8 var x = new X ();
9 x.Run ().Wait ();
12 Task<int> AnimateAsync (Action callback)
14 callback ();
15 return Task.FromResult (2);
18 void SecondLevel (Action callback)
20 callback ();
23 async Task Run ()
25 var ret = await AnimateAsync (() => {
26 SecondLevel (() => {
27 Console.WriteLine (this);
28 });
29 });