TypeScript/tests/cases/compiler/destructuringAssignmentWithDefault.ts

4 lines
84 B
TypeScript

// @strictNullChecks: true
const a: { x?: number } = { };
let x = 0;
({x = 1} = a);