Add regression tests

This commit is contained in:
Anders Hejlsberg
2019-06-28 17:09:22 -10:00
parent fbb79400bb
commit b7b7a6626c

View File

@@ -7,3 +7,9 @@ const [a, b, c, ...rest] = tuple;
declare var receiver: typeof tuple;
[...receiver] = tuple;
// 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), []);