mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
414 B
TypeScript
12 lines
414 B
TypeScript
//// [tests/cases/conformance/es6/destructuring/destructuringObjectAssignmentPatternWithNestedSpread.ts] ////
|
|
|
|
//// [destructuringObjectAssignmentPatternWithNestedSpread.ts]
|
|
let a: any, b: any, c: any = {x: {a: 1, y: 2}}, d: any;
|
|
({x: {a, ...b} = d} = c);
|
|
|
|
|
|
//// [destructuringObjectAssignmentPatternWithNestedSpread.js]
|
|
"use strict";
|
|
let a, b, c = { x: { a: 1, y: 2 } }, d;
|
|
({ x: { a, ...b } = d } = c);
|