138 lines
3.8 KiB
TypeScript
138 lines
3.8 KiB
TypeScript
//// [tests/cases/compiler/collisionExportsRequireAndEnum.ts] ////
|
|
|
|
//// [collisionExportsRequireAndEnum_externalmodule.ts]
|
|
export enum require { // Error
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
export enum exports { // Error
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
module m1 {
|
|
enum require {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
enum exports {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
}
|
|
module m2 {
|
|
export enum require {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
export enum exports {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
}
|
|
|
|
//// [collisionExportsRequireAndEnum_globalFile.ts]
|
|
enum require {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
enum exports {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
module m3 {
|
|
enum require {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
enum exports {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
}
|
|
module m4 {
|
|
export enum require {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
export enum exports {
|
|
_thisVal1,
|
|
_thisVal2,
|
|
}
|
|
}
|
|
|
|
//// [collisionExportsRequireAndEnum_externalmodule.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
(function (require) {
|
|
require[require["_thisVal1"] = 0] = "_thisVal1";
|
|
require[require["_thisVal2"] = 1] = "_thisVal2";
|
|
})(exports.require || (exports.require = {}));
|
|
var require = exports.require;
|
|
(function (exports) {
|
|
exports[exports["_thisVal1"] = 0] = "_thisVal1";
|
|
exports[exports["_thisVal2"] = 1] = "_thisVal2";
|
|
})(exports.exports || (exports.exports = {}));
|
|
var exports = exports.exports;
|
|
var m1;
|
|
(function (m1) {
|
|
var require;
|
|
(function (require) {
|
|
require[require["_thisVal1"] = 0] = "_thisVal1";
|
|
require[require["_thisVal2"] = 1] = "_thisVal2";
|
|
})(require || (require = {}));
|
|
var exports;
|
|
(function (exports) {
|
|
exports[exports["_thisVal1"] = 0] = "_thisVal1";
|
|
exports[exports["_thisVal2"] = 1] = "_thisVal2";
|
|
})(exports || (exports = {}));
|
|
})(m1 || (m1 = {}));
|
|
var m2;
|
|
(function (m2) {
|
|
(function (require) {
|
|
require[require["_thisVal1"] = 0] = "_thisVal1";
|
|
require[require["_thisVal2"] = 1] = "_thisVal2";
|
|
})(m2.require || (m2.require = {}));
|
|
var require = m2.require;
|
|
(function (exports) {
|
|
exports[exports["_thisVal1"] = 0] = "_thisVal1";
|
|
exports[exports["_thisVal2"] = 1] = "_thisVal2";
|
|
})(m2.exports || (m2.exports = {}));
|
|
var exports = m2.exports;
|
|
})(m2 || (m2 = {}));
|
|
});
|
|
//// [collisionExportsRequireAndEnum_globalFile.js]
|
|
var require;
|
|
(function (require) {
|
|
require[require["_thisVal1"] = 0] = "_thisVal1";
|
|
require[require["_thisVal2"] = 1] = "_thisVal2";
|
|
})(require || (require = {}));
|
|
var exports;
|
|
(function (exports) {
|
|
exports[exports["_thisVal1"] = 0] = "_thisVal1";
|
|
exports[exports["_thisVal2"] = 1] = "_thisVal2";
|
|
})(exports || (exports = {}));
|
|
var m3;
|
|
(function (m3) {
|
|
var require;
|
|
(function (require) {
|
|
require[require["_thisVal1"] = 0] = "_thisVal1";
|
|
require[require["_thisVal2"] = 1] = "_thisVal2";
|
|
})(require || (require = {}));
|
|
var exports;
|
|
(function (exports) {
|
|
exports[exports["_thisVal1"] = 0] = "_thisVal1";
|
|
exports[exports["_thisVal2"] = 1] = "_thisVal2";
|
|
})(exports || (exports = {}));
|
|
})(m3 || (m3 = {}));
|
|
var m4;
|
|
(function (m4) {
|
|
(function (require) {
|
|
require[require["_thisVal1"] = 0] = "_thisVal1";
|
|
require[require["_thisVal2"] = 1] = "_thisVal2";
|
|
})(m4.require || (m4.require = {}));
|
|
var require = m4.require;
|
|
(function (exports) {
|
|
exports[exports["_thisVal1"] = 0] = "_thisVal1";
|
|
exports[exports["_thisVal2"] = 1] = "_thisVal2";
|
|
})(m4.exports || (m4.exports = {}));
|
|
var exports = m4.exports;
|
|
})(m4 || (m4 = {}));
|