//@noImplicitAny: true declare function foo(x: T): T; var y = foo([undefined]); y = [""];