summaryrefslogtreecommitdiff
path: root/mcs/errors/cs8074.cs
blob: 25d4e81f3be4bec8ea0a922a395e1459772a3be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS8074: Expression tree cannot contain a dictionary initializer
// Line: 13

using System;
using System.Collections.Generic;
using System.Linq.Expressions;

class C
{
	public static void Main ()
	{
		Expression<Func<Dictionary<string, int>>> l = () => new Dictionary<string, int> {
			["a"] = 1
		};
	}
}