TypeScript/tests/baselines/reference/collisionCodeGenModuleWithConstructorChildren.js

57 lines
1 KiB
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [collisionCodeGenModuleWithConstructorChildren.ts]
module M {
export var x = 3;
class c {
constructor(M, p = x) {
}
}
}
module M {
class d {
constructor(private M, p = x) {
}
}
}
module M {
class d2 {
constructor() {
var M = 10;
var p = x;
}
}
}
//// [collisionCodeGenModuleWithConstructorChildren.js]
var M;
(function (_M) {
_M.x = 3;
2014-07-13 01:04:16 +02:00
var c = (function () {
function c(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(M, p) {
if (p === void 0) { p = _M.x; }
2014-07-13 01:04:16 +02:00
this.M = M;
}
return d;
})();
})(M || (M = {}));
var M;
(function (_M) {
2014-07-13 01:04:16 +02:00
var d2 = (function () {
function d2() {
var M = 10;
var p = _M.x;
2014-07-13 01:04:16 +02:00
}
return d2;
})();
})(M || (M = {}));