TypeScript/tests/baselines/reference/collisionCodeGenModuleWithMethodChildren.js

83 lines
1.4 KiB
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [collisionCodeGenModuleWithMethodChildren.ts]
module M {
export var x = 3;
class c {
fn(M, p = x) { }
}
}
module M {
class d {
fn2() {
var M;
var p = x;
}
}
}
module M {
class e {
fn3() {
function M() {
var p = x;
}
}
}
}
module M { // Shouldnt bn _M
class f {
M() {
}
}
}
//// [collisionCodeGenModuleWithMethodChildren.js]
var M;
(function (_M) {
_M.x = 3;
2014-07-13 01:04:16 +02:00
var c = (function () {
function c() {
}
c.prototype.fn = function (M, p) {
if (p === void 0) { p = _M.x; }
2014-07-13 01:04:16 +02:00
};
return c;
})();
})(M || (M = {}));
var M;
(function (_M) {
2014-07-13 01:04:16 +02:00
var d = (function () {
function d() {
}
d.prototype.fn2 = function () {
var M;
var p = _M.x;
2014-07-13 01:04:16 +02:00
};
return d;
})();
})(M || (M = {}));
var M;
(function (_M) {
2014-07-13 01:04:16 +02:00
var e = (function () {
function e() {
}
e.prototype.fn3 = function () {
function M() {
var p = _M.x;
2014-07-13 01:04:16 +02:00
}
};
return e;
})();
})(M || (M = {}));
var M;
(function (M) {
var f = (function () {
function f() {
}
f.prototype.M = function () {
};
return f;
})();
})(M || (M = {}));