TypeScript/tests/cases/conformance/interfaces/declarationMerging/genericAndNonGenericInterfaceWithTheSameName2.ts

27 lines
394 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// generic and non-generic interfaces with the same name do not merge
module M {
interface A<T> {
bar: T;
}
}
module M2 {
interface A { // ok
foo: string;
}
}
module N {
module M {
interface A<T> {
bar: T;
}
}
module M2 {
interface A { // ok
foo: string;
}
}
}