mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
797 B
TypeScript
33 lines
797 B
TypeScript
//// [tests/cases/compiler/declarationEmitNameConflictsWithAlias.ts] ////
|
|
|
|
//// [declarationEmitNameConflictsWithAlias.ts]
|
|
export namespace C { export interface I { } }
|
|
export import v = C;
|
|
export namespace M {
|
|
export namespace C { export interface I { } }
|
|
export var w: v.I; // Gets emitted as C.I, which is the wrong interface
|
|
}
|
|
|
|
//// [declarationEmitNameConflictsWithAlias.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.M = void 0;
|
|
var M;
|
|
(function (M) {
|
|
})(M || (exports.M = M = {}));
|
|
|
|
|
|
//// [declarationEmitNameConflictsWithAlias.d.ts]
|
|
export declare namespace C {
|
|
interface I {
|
|
}
|
|
}
|
|
export import v = C;
|
|
export declare namespace M {
|
|
namespace C {
|
|
interface I {
|
|
}
|
|
}
|
|
var w: v.I;
|
|
}
|