Files
tsgo/testdata/baselines/reference/submodule/compiler/declarationEmitDestructuringPrivacyError.js

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 {};
}