TypeScript/tests/baselines/reference/extendedInterfacesWithDuplicateTypeParameters.errors.txt
2014-07-12 17:30:19 -07:00

18 lines
643 B
Plaintext

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