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;
79 class asyncAttribute: Attribute
81 delegate async async (async async);
108 delegate void D (int x);
112 D d2 = (int await) => { };
113 D d3 = delegate (int await) { };
133 // FIXME: @await local = new @await ();
141 var x = new { await = 1 };
144 var x2 = new { await };
154 var a = new Initializer () {