TypeScript/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.js
2015-02-06 18:45:09 -08:00

43 lines
687 B
JavaScript

//// [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;
function fn(M, p) { }
})(M || (M = {}));
var M;
(function (_M) {
function fn2() {
var M;
var p = _M.x;
}
})(M || (M = {}));
var M;
(function (_M) {
function fn3() {
function M() {
var p = _M.x;
}
}
})(M || (M = {}));