TypeScript/tests/cases/conformance/types/tuple/wideningTuples1.ts
2015-07-14 11:50:31 -07:00

5 lines
111 B
TypeScript

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