mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
602 B
TypeScript
28 lines
602 B
TypeScript
//// [tests/cases/compiler/declarationEmitDestructuringPrivacyError.ts] ////
|
|
|
|
//// [declarationEmitDestructuringPrivacyError.ts]
|
|
namespace m {
|
|
class c {
|
|
}
|
|
export var [x, y, z] = [10, new c(), 30];
|
|
}
|
|
|
|
//// [declarationEmitDestructuringPrivacyError.js]
|
|
"use strict";
|
|
var m;
|
|
(function (m) {
|
|
var _a;
|
|
class c {
|
|
}
|
|
_a = [10, new c(), 30], m.x = _a[0], m.y = _a[1], m.z = _a[2];
|
|
})(m || (m = {}));
|
|
|
|
|
|
//// [declarationEmitDestructuringPrivacyError.d.ts]
|
|
declare namespace m {
|
|
class c {
|
|
}
|
|
export var [x, y, z]: [number, c, number];
|
|
export {};
|
|
}
|