swc/tests/tsc-references/internalModules/DeclarationMerging/ModuleAndEnumWithSameNameAndCommonRoot/input.ts/es5.2.minified/output.js

13 lines
525 B
JavaScript

var enumdule, enumdule1;
!function(enumdule) {
var Point = function(x, y) {
"use strict";
(function(instance, Constructor) {
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
})(this, Point), this.x = x, this.y = y;
};
enumdule.Point = Point;
}(enumdule1 || (enumdule1 = {
})), (enumdule = enumdule1 || (enumdule1 = {
}))[enumdule.Red = 0] = "Red", enumdule[enumdule.Blue = 1] = "Blue", enumdule1.Red, new enumdule1.Point(0, 0);