2018-07-31 00:11:05 +02:00
|
|
|
// @strict: true
|
|
|
|
|
|
|
|
declare var tuple: [boolean, number, ...string[]];
|
|
|
|
|
|
|
|
const [a, b, c, ...rest] = tuple;
|
2018-07-31 10:21:40 +02:00
|
|
|
|
|
|
|
declare var receiver: typeof tuple;
|
|
|
|
|
|
|
|
[...receiver] = tuple;
|
2019-06-29 05:09:22 +02:00
|
|
|
|
|
|
|
// Repros from #32140
|
|
|
|
|
|
|
|
const [oops1] = [1, 2, 3].reduce((accu, el) => accu.concat(el), []);
|
|
|
|
|
|
|
|
const [oops2] = [1, 2, 3].reduce((acc: number[], e) => acc.concat(e), []);
|