TypeScript/tests/baselines/reference/genericAndNonGenericInterfaceWithTheSameName2.types
2014-08-15 14:37:48 -07:00

55 lines
690 B
Plaintext

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