TypeScript/tests/baselines/reference/extendedInterfacesWithDuplicateTypeParameters.errors.txt

18 lines
643 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/extendedInterfacesWithDuplicateTypeParameters.ts (3 errors) ====
interface InterfaceWithMultipleTypars<A, A> { // should error
~
!!! Duplicate identifier 'A'.
bar(): void;
}
interface InterfaceWithSomeTypars<B> { // should not error
bar(): void;
}
interface InterfaceWithSomeTypars<C, C> { // should error
~~~~~~~~~~~~~~~~~~~~~~~
!!! All declarations of an interface must have identical type parameters.
~
!!! Duplicate identifier 'C'.
bar2(): void;
}