80 lines
1 KiB
TypeScript
80 lines
1 KiB
TypeScript
//// [tests/cases/conformance/externalModules/duplicateExportAssignments.ts] ////
|
|
|
|
//// [foo1.ts]
|
|
var x = 10;
|
|
var y = 20;
|
|
export = x;
|
|
export = y;
|
|
|
|
//// [foo2.ts]
|
|
var x = 10;
|
|
class y {};
|
|
export = x;
|
|
export = y;
|
|
|
|
//// [foo3.ts]
|
|
module x {
|
|
export var x = 10;
|
|
}
|
|
class y {
|
|
y: number;
|
|
}
|
|
export = x;
|
|
export = y;
|
|
|
|
//// [foo4.ts]
|
|
export = x;
|
|
function x(){
|
|
return 42;
|
|
}
|
|
function y(){
|
|
return 42;
|
|
}
|
|
export = y;
|
|
|
|
//// [foo5.ts]
|
|
var x = 5;
|
|
var y = "test";
|
|
var z = {};
|
|
export = x;
|
|
export = y;
|
|
export = z;
|
|
|
|
|
|
//// [foo1.js]
|
|
var x = 10;
|
|
var y = 20;
|
|
module.exports = x;
|
|
//// [foo2.js]
|
|
var x = 10;
|
|
var y = (function () {
|
|
function y() {
|
|
}
|
|
return y;
|
|
})();
|
|
;
|
|
module.exports = x;
|
|
//// [foo3.js]
|
|
var x;
|
|
(function (x_1) {
|
|
x_1.x = 10;
|
|
})(x || (x = {}));
|
|
var y = (function () {
|
|
function y() {
|
|
}
|
|
return y;
|
|
})();
|
|
module.exports = x;
|
|
//// [foo4.js]
|
|
function x() {
|
|
return 42;
|
|
}
|
|
function y() {
|
|
return 42;
|
|
}
|
|
module.exports = x;
|
|
//// [foo5.js]
|
|
var x = 5;
|
|
var y = "test";
|
|
var z = {};
|
|
module.exports = x;
|