30 lines
486 B
JavaScript
30 lines
486 B
JavaScript
//// [genericAndNonGenericInterfaceWithTheSameName2.ts]
|
|
// 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;
|
|
}
|
|
}
|
|
}
|
|
|
|
//// [genericAndNonGenericInterfaceWithTheSameName2.js]
|