Merge branch 'master' of github.com:mono/mono
[mono.git] / mcs / errors / dcs0826.cs
1 // CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
2 // Line: 8
3
4 class C
5 {
6         static void Main()
7         {
8                 object o = 1;
9                 dynamic d = 1;
10                 
11                 var a = new[] {
12                         new { X = o },
13                         new { X = d }
14                 };
15         }
16 }