swc/crates/swc_ecma_parser/tests/tsc/wideningTuples1.ts

5 lines
107 B
TypeScript

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