mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
91 lines
1.4 KiB
TypeScript
91 lines
1.4 KiB
TypeScript
//// [tests/cases/compiler/collisionCodeGenModuleWithAccessorChildren.ts] ////
|
|
|
|
//// [collisionCodeGenModuleWithAccessorChildren.ts]
|
|
namespace M {
|
|
export var x = 3;
|
|
class c {
|
|
private y;
|
|
set Z(M) {
|
|
this.y = x;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace M {
|
|
class d {
|
|
private y;
|
|
set Z(p) {
|
|
var M = 10;
|
|
this.y = x;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace M { // Shouldnt be _M
|
|
class e {
|
|
private y;
|
|
set M(p) {
|
|
this.y = x;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace M {
|
|
class f {
|
|
get Z() {
|
|
var M = 10;
|
|
return x;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace M { // Shouldnt be _M
|
|
class e {
|
|
get M() {
|
|
return x;
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [collisionCodeGenModuleWithAccessorChildren.js]
|
|
"use strict";
|
|
var M;
|
|
(function (M_1) {
|
|
M_1.x = 3;
|
|
class c {
|
|
set Z(M) {
|
|
this.y = M_1.x;
|
|
}
|
|
}
|
|
})(M || (M = {}));
|
|
(function (M_2) {
|
|
class d {
|
|
set Z(p) {
|
|
var M = 10;
|
|
this.y = M_2.x;
|
|
}
|
|
}
|
|
})(M || (M = {}));
|
|
(function (M) {
|
|
class e {
|
|
set M(p) {
|
|
this.y = M.x;
|
|
}
|
|
}
|
|
})(M || (M = {}));
|
|
(function (M_3) {
|
|
class f {
|
|
get Z() {
|
|
var M = 10;
|
|
return M_3.x;
|
|
}
|
|
}
|
|
})(M || (M = {}));
|
|
(function (M) {
|
|
class e {
|
|
get M() {
|
|
return M.x;
|
|
}
|
|
}
|
|
})(M || (M = {}));
|