mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
42 lines
858 B
TypeScript
42 lines
858 B
TypeScript
//// [tests/cases/conformance/externalModules/valuesMergingAcrossModules.ts] ////
|
|
|
|
//// [a.ts]
|
|
function A() {}
|
|
export { A };
|
|
|
|
//// [b.ts]
|
|
import { A } from "./a";
|
|
type A = 0;
|
|
export { A };
|
|
|
|
//// [c.ts]
|
|
import { A } from "./b";
|
|
namespace A {
|
|
export const displayName = "A";
|
|
}
|
|
|
|
A();
|
|
A.displayName;
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.A = A;
|
|
function A() { }
|
|
//// [b.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.A = void 0;
|
|
const a_1 = require("./a");
|
|
Object.defineProperty(exports, "A", { enumerable: true, get: function () { return a_1.A; } });
|
|
//// [c.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var A;
|
|
(function (A) {
|
|
A.displayName = "A";
|
|
})(A || (A = {}));
|
|
A();
|
|
A.displayName;
|