mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
90c540a248
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
26 lines
634 B
TypeScript
26 lines
634 B
TypeScript
//// [tests/cases/compiler/commonjsShorthandDestructuringDefaultImportExport.ts] ////
|
|
|
|
//// [a.ts]
|
|
import { imported } from "./b";
|
|
export const exported = 2;
|
|
let a, b;
|
|
({ a = imported, b = exported } = {});
|
|
|
|
//// [b.ts]
|
|
export const imported = 1;
|
|
|
|
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.imported = void 0;
|
|
exports.imported = 1;
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.exported = void 0;
|
|
const b_1 = require("./b");
|
|
exports.exported = 2;
|
|
let a, b;
|
|
({ a = b_1.imported, b = exports.exported } = {});
|