TypeScript/tests/cases/compiler/useBeforeDeclaration_destructuring.ts

6 lines
92 B
TypeScript

a;
let {a, b = a} = {a: '', b: 1};
b;
function test({c, d = c}: Record<string, number>) {}