mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
705 B
TypeScript
35 lines
705 B
TypeScript
//// [tests/cases/conformance/interfaces/declarationMerging/genericAndNonGenericInterfaceWithTheSameName2.ts] ////
|
|
|
|
//// [genericAndNonGenericInterfaceWithTheSameName2.ts]
|
|
// generic and non-generic interfaces with the same name do not merge
|
|
|
|
namespace M {
|
|
interface A<T> {
|
|
bar: T;
|
|
}
|
|
}
|
|
|
|
namespace M2 {
|
|
interface A { // ok
|
|
foo: string;
|
|
}
|
|
}
|
|
|
|
namespace N {
|
|
namespace M {
|
|
interface A<T> {
|
|
bar: T;
|
|
}
|
|
}
|
|
|
|
namespace M2 {
|
|
interface A { // ok
|
|
foo: string;
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [genericAndNonGenericInterfaceWithTheSameName2.js]
|
|
"use strict";
|
|
// generic and non-generic interfaces with the same name do not merge
|