swc/tests/tsc-references/interfaces/declarationMerging/mergeTwoInterfaces2/input.ts/es2015.1.normal/output.js
Donny/강동윤 26944e159d
fix(es/transforms/base): Reimplement hygiene (#2408)
swc_ecma_transforms_base:
 - Reimplement `hygiene`.
2021-10-21 05:12:50 +00:00

36 lines
630 B
JavaScript

// two interfaces with the same root module should merge
// root module now multiple module declarations
var M21;
(function(M2) {
var a;
var r1 = a.foo;
var r2 = a.bar;
})(M21 || (M21 = {
}));
(function(M2) {
var a;
var r1 = a.foo;
var r2 = a.bar;
})(M21 || (M21 = {
}));
(function(M2) {
var M3;
(function(M3) {
var a;
var r1 = a.foo;
var r2 = a.bar;
})(M3 || (M3 = {
}));
M2.M3 = M3;
})(M21 || (M21 = {
}));
(function(M2) {
(function(M3) {
var a;
var r1 = a.foo;
var r2 = a.bar;
})(M3 || (M3 = {
}));
})(M21 || (M21 = {
}));