Merge pull request #3591 from directhex/mono_libdir_fallback
[mono.git] / mcs / errors / cs1995.cs
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
3
4 using System.Linq;
5 using System.Threading.Tasks;
6
7 class C
8 {
9         public static async void Test ()
10         {
11                 Task<int>[] d = null;
12                 var r = from x in d select await x;
13         }
14 }