TypeScript/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.js

45 lines
733 B
JavaScript
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;
(function (_M) {
_M.x = 3;
2014-07-13 01:04:16 +02:00
function fn(M, p) {
if (p === void 0) { p = _M.x; }
2014-07-13 01:04:16 +02:00
}
})(M || (M = {}));
var M;
(function (_M) {
2014-07-13 01:04:16 +02:00
function fn2() {
var M;
var p = _M.x;
2014-07-13 01:04:16 +02:00
}
})(M || (M = {}));
var M;
(function (_M) {
2014-07-13 01:04:16 +02:00
function fn3() {
function M() {
var p = _M.x;
2014-07-13 01:04:16 +02:00
}
}
})(M || (M = {}));