TypeScript/tests/baselines/reference/collisionCodeGenModuleWithFunctionChildren.js
Cyrus Najmabadi cfe3bb8f8d Merge branch 'master' into sideEffects
Conflicts:
	tests/baselines/reference/recursiveClassReferenceTest.js.map
2015-02-23 14:00:56 -08:00

45 lines
741 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) {
if (p === void 0) { p = _M.x; }
}
})(M || (M = {}));
var M;
(function (_M_1) {
function fn2() {
var M;
var p = _M_1.x;
}
})(M || (M = {}));
var M;
(function (_M_2) {
function fn3() {
function M() {
var p = _M_2.x;
}
}
})(M || (M = {}));