54 lines
718 B
Text
54 lines
718 B
Text
=== tests/cases/conformance/interfaces/declarationMerging/genericAndNonGenericInterfaceWithTheSameName2.ts ===
|
|
// generic and non-generic interfaces with the same name do not merge
|
|
|
|
module M {
|
|
>M : unknown
|
|
|
|
interface A<T> {
|
|
>A : A<T>
|
|
>T : T
|
|
|
|
bar: T;
|
|
>bar : T
|
|
>T : T
|
|
}
|
|
}
|
|
|
|
module M2 {
|
|
>M2 : unknown
|
|
|
|
interface A { // ok
|
|
>A : A
|
|
|
|
foo: string;
|
|
>foo : string
|
|
}
|
|
}
|
|
|
|
module N {
|
|
>N : unknown
|
|
|
|
module M {
|
|
>M : unknown
|
|
|
|
interface A<T> {
|
|
>A : A<T>
|
|
>T : T
|
|
|
|
bar: T;
|
|
>bar : T
|
|
>T : T
|
|
}
|
|
}
|
|
|
|
module M2 {
|
|
>M2 : unknown
|
|
|
|
interface A { // ok
|
|
>A : A
|
|
|
|
foo: string;
|
|
>foo : string
|
|
}
|
|
}
|
|
}
|