13 lines
293 B
TypeScript
13 lines
293 B
TypeScript
//// [wideningTuples2.ts]
|
|
var foo: () => [any] = function bar() {
|
|
let intermediate = bar();
|
|
intermediate = [""];
|
|
return [undefined];
|
|
};
|
|
|
|
//// [wideningTuples2.js]
|
|
var foo = function bar() {
|
|
var intermediate = bar();
|
|
intermediate = [""];
|
|
return [undefined];
|
|
};
|