summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1995.cs
blob: 52c8d3e26b33a555f7b72a73d0364b37519f0fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS1995: The `await' operator may only be used in a query expression within the first collection expression of the initial `from' clause or within the collection expression of a `join' clause
// Line: 12

using System.Linq;
using System.Threading.Tasks;

class C
{
	public static async void Test ()
	{
		Task<int>[] d = null;
		var r = from x in d select await x;
	}
}