TypeScript/tests/baselines/reference/genericAndNonGenericInterfaceWithTheSameName2.types
2014-08-28 12:40:58 -07:00

55 lines
718 B
Plaintext

=== 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
}
}
}