9 lines
180 B
TypeScript
9 lines
180 B
TypeScript
//// [wideningTuples1.ts]
|
|
declare function foo<T extends [any]>(x: T): T;
|
|
|
|
var y = foo([undefined]);
|
|
y = [""];
|
|
|
|
//// [wideningTuples1.js]
|
|
var y = foo([undefined]);
|
|
y = [""];
|