mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
44 lines
791 B
TypeScript
44 lines
791 B
TypeScript
//// [tests/cases/compiler/collisionCodeGenModuleWithFunctionChildren.ts] ////
|
|
|
|
//// [collisionCodeGenModuleWithFunctionChildren.ts]
|
|
namespace M {
|
|
export var x = 3;
|
|
function fn(M, p = x) { }
|
|
}
|
|
|
|
namespace M {
|
|
function fn2() {
|
|
var M;
|
|
var p = x;
|
|
}
|
|
}
|
|
|
|
namespace M {
|
|
function fn3() {
|
|
function M() {
|
|
var p = x;
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [collisionCodeGenModuleWithFunctionChildren.js]
|
|
"use strict";
|
|
var M;
|
|
(function (M_1) {
|
|
M_1.x = 3;
|
|
function fn(M, p = M_1.x) { }
|
|
})(M || (M = {}));
|
|
(function (M_2) {
|
|
function fn2() {
|
|
var M;
|
|
var p = M_2.x;
|
|
}
|
|
})(M || (M = {}));
|
|
(function (M_3) {
|
|
function fn3() {
|
|
function M() {
|
|
var p = M_3.x;
|
|
}
|
|
}
|
|
})(M || (M = {}));
|