mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
495 B
TypeScript
21 lines
495 B
TypeScript
//// [tests/cases/compiler/destructuringPropertyAssignmentNameIsNotAssignmentTarget.ts] ////
|
|
|
|
//// [destructuringPropertyAssignmentNameIsNotAssignmentTarget.ts]
|
|
// test for #10668
|
|
function qux(bar: { value: number }) {
|
|
let foo: number;
|
|
({ value: foo } = bar);
|
|
let x = () => bar;
|
|
}
|
|
|
|
|
|
|
|
//// [destructuringPropertyAssignmentNameIsNotAssignmentTarget.js]
|
|
"use strict";
|
|
// test for #10668
|
|
function qux(bar) {
|
|
let foo;
|
|
({ value: foo } = bar);
|
|
let x = () => bar;
|
|
}
|