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

23 lines
1.1 KiB
Plaintext
Raw Normal View History

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