summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1989.cs
blob: ebbb9d1b277afaeae9c3be3919e9b1ac24f7ba9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// CS1989: Async lambda expressions cannot be converted to expression trees
// Line: 17

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

class C
{
	static Task Method ()
	{
		return null;
	}
	
	public static void Main ()
	{
		Expression<Action<int>> a = async l => await Method ();
	}
}