mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
43 lines
998 B
TypeScript
43 lines
998 B
TypeScript
//// [tests/cases/compiler/declFileWithInternalModuleNameConflictsInExtendsClause1.ts] ////
|
|
|
|
//// [declFileWithInternalModuleNameConflictsInExtendsClause1.ts]
|
|
namespace X.A.C {
|
|
export interface Z {
|
|
}
|
|
}
|
|
namespace X.A.B.C {
|
|
namespace A {
|
|
}
|
|
export class W implements X.A.C.Z { // This needs to be referred as X.A.C.Z as A has conflict
|
|
}
|
|
}
|
|
|
|
//// [declFileWithInternalModuleNameConflictsInExtendsClause1.js]
|
|
"use strict";
|
|
var X;
|
|
(function (X) {
|
|
var A;
|
|
(function (A) {
|
|
var B;
|
|
(function (B) {
|
|
var C;
|
|
(function (C) {
|
|
class W {
|
|
}
|
|
C.W = W;
|
|
})(C = B.C || (B.C = {}));
|
|
})(B = A.B || (A.B = {}));
|
|
})(A = X.A || (X.A = {}));
|
|
})(X || (X = {}));
|
|
|
|
|
|
//// [declFileWithInternalModuleNameConflictsInExtendsClause1.d.ts]
|
|
declare namespace X.A.C {
|
|
interface Z {
|
|
}
|
|
}
|
|
declare namespace X.A.B.C {
|
|
class W implements X.A.C.Z {
|
|
}
|
|
}
|