Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

17 lines
271 B
C#

// 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 }
};
}
}