TypeScript/tests/baselines/reference/internalAliasEnumInsideLocalModuleWithoutExportAccessError.js

33 lines
823 B
TypeScript

//// [internalAliasEnumInsideLocalModuleWithoutExportAccessError.ts]
export module a {
export enum weekend {
Friday,
Saturday,
Sunday
}
}
export module c {
import b = a.weekend;
export var bVal: b = b.Sunday;
}
var happyFriday = c.b.Friday;
//// [internalAliasEnumInsideLocalModuleWithoutExportAccessError.js]
var a;
(function (a) {
(function (weekend) {
weekend[weekend["Friday"] = 0] = "Friday";
weekend[weekend["Saturday"] = 1] = "Saturday";
weekend[weekend["Sunday"] = 2] = "Sunday";
})(a.weekend || (a.weekend = {}));
var weekend = a.weekend;
})(a = exports.a || (exports.a = {}));
var c;
(function (c) {
var b = a.weekend;
c.bVal = b.Sunday;
})(c = exports.c || (exports.c = {}));
var happyFriday = c.b.Friday;