Merge pull request #121 from LogosBible/processfixes
[mono.git] / mcs / errors / cs1989.cs
1 // CS1989: An expression tree cannot contain an await operator
2 // Line: 17
3 // Compiler options: -langversion:future
4
5 using System;
6 using System.Linq.Expressions;
7 using System.Threading.Tasks;
8
9 class C
10 {
11         static Task Method ()
12         {
13                 return null;
14         }
15         
16         public static void Main ()
17         {
18                 Expression<Action<int>> a = async l => await Method ();
19         }
20 }