Files
tsgo/testdata/baselines/reference/submodule/conformance/genericAndNonGenericInterfaceWithTheSameName2.js

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