summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0834.cs
blob: 7ba58a33fb39c84ef777aa5222b05f5a6caf2ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0834: A lambda expression with statement body cannot be converted to an expresion tree
// Line: 12

using System.Linq.Expressions;

class C
{
	delegate bool D ();
	
	public void Foo ()
	{
		Expression<D> e = () => { return true; };
	}
}