TypeScript/tests/cases/compiler/checkDestructuringShorthandAssigment2.ts
2020-06-17 03:29:10 -04:00

7 lines
123 B
TypeScript

// @noEmit: true
// GH #38175 -- should not crash while checking
let o: any, k: any;
let { x } = { x: 1, ...o, [k]: 1 };