[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1995.cs
blob52c8d3e26b33a555f7b72a73d0364b37519f0fdb
1 // 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
2 // Line: 12
4 using System.Linq;
5 using System.Threading.Tasks;
7 class C
9 public static async void Test ()
11 Task<int>[] d = null;
12 var r = from x in d select await x;