2 using System.Threading.Tasks;
4 // contextual async, parser tests
7 async Task<int> async ()
10 throw new NotImplementedException ();
13 async Task async (int async)
15 throw new NotImplementedException ();
18 async void CastTest ()
20 var res = (int) await async ();
21 var res2 = (Int32) await async ();
24 async void Iasync.async ()
28 public static int Main ()
51 static void Test (bool async)
53 var a = async ? Prop : 2;
88 class asyncAttribute: Attribute
90 delegate async async (async async);
117 delegate void D (int x);
121 D d2 = (int await) => { };
122 D d3 = delegate (int await) { };
142 // FIXME: @await local = new @await ();
150 var x = new { await = 1 };
153 var x2 = new { await };
163 var a = new Initializer () {
173 var await = new string[0];
174 var l = await.Length;
180 static void M (object await)
182 var b = await is Exception;
183 var c = await as Exception;