Skip to content

Commit b7b7a66

Browse files
committed
Add regression tests
1 parent fbb7940 commit b7b7a66

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/cases/compiler/destructuringTuple.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ const [a, b, c, ...rest] = tuple;
77
declare var receiver: typeof tuple;
88

99
[...receiver] = tuple;
10+
11+
// Repros from #32140
12+
13+
const [oops1] = [1, 2, 3].reduce((accu, el) => accu.concat(el), []);
14+
15+
const [oops2] = [1, 2, 3].reduce((acc: number[], e) => acc.concat(e), []);

0 commit comments

Comments
 (0)