summaryrefslogtreecommitdiff
path: root/mcs/errors/cs1946.cs
blob: f53130fad09c65403b2b7e0393de73b7797a7000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// CS1946: An anonymous method cannot be converted to an expression tree
// Line: 11

using System;
using System.Linq.Expressions;

class C
{
	delegate string D ();

	public static void Main ()
	{
		Expression<D> e = delegate () { return "a"; };
	}
}