TypeScript/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.js

45 lines
740 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [collisionCodeGenModuleWithFunctionChildren.ts]
module M {
export var x = 3;
function fn(M, p = x) { }
}
module M {
function fn2() {
var M;
var p = x;
}
}
module M {
function fn3() {
function M() {
var p = x;
}
}
}
//// [collisionCodeGenModuleWithFunctionChildren.js]
var M;
2015-03-24 00:16:29 +01:00
(function (M_1) {
M_1.x = 3;
function fn(M, p) {
2015-03-24 00:16:29 +01:00
if (p === void 0) { p = M_1.x; }
}
2014-07-13 01:04:16 +02:00
})(M || (M = {}));
var M;
2015-03-24 00:16:29 +01:00
(function (M_2) {
2014-07-13 01:04:16 +02:00
function fn2() {
var M;
2015-03-24 00:16:29 +01:00
var p = M_2.x;
2014-07-13 01:04:16 +02:00
}
})(M || (M = {}));
var M;
2015-03-24 00:16:29 +01:00
(function (M_3) {
2014-07-13 01:04:16 +02:00
function fn3() {
function M() {
2015-03-24 00:16:29 +01:00
var p = M_3.x;
2014-07-13 01:04:16 +02:00
}
}
})(M || (M = {}));