2 using System.Threading.Tasks;
4 // contextual async, parser tests
8 async Task<int> async ()
11 throw new NotImplementedException ();
14 async Task async (int async)
16 throw new NotImplementedException ();
19 async void CastTest ()
21 var res = (int) await async ();
22 var res2 = (Int32) await async ();
25 public static int Main ()
43 static void Test (bool async)
45 var a = async ? Prop : 2;
71 class asyncAttribute: Attribute
73 delegate async async (async async);
100 delegate void D (int x);
104 D d2 = (int await) => { };
105 D d3 = delegate (int await) { };
125 // FIXME: @await local = new @await ();
133 var x = new { await = 1 };
136 var x2 = new { await };
146 var a = new Initializer () {