summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0826-9.cs
blob: 4e098969b8c038957448eb59355b600048475a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
// Line: 8

class C
{
	static void Main()
	{
		object o = 1;
		dynamic d = 1;
		
		var a = new[] {
			new { X = o },
			new { X = d }
		};
	}
}