2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/interfaces/declarationMerging/genericAndNonGenericInterfaceWithTheSameName2.ts ===
|
|
|
|
// generic and non-generic interfaces with the same name do not merge
|
|
|
|
|
|
|
|
module M {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface A<T> {
|
|
|
|
>A : A<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
bar: T;
|
|
|
|
>bar : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M2 : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface A { // ok
|
|
|
|
>A : A
|
|
|
|
|
|
|
|
foo: string;
|
|
|
|
>foo : string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module N {
|
2014-08-28 21:40:58 +02:00
|
|
|
>N : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
module M {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface A<T> {
|
|
|
|
>A : A<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
bar: T;
|
|
|
|
>bar : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module M2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>M2 : unknown
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface A { // ok
|
|
|
|
>A : A
|
|
|
|
|
|
|
|
foo: string;
|
|
|
|
>foo : string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|