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

21 lines
620 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts (6 errors) ====
class C<T, T> { }
~
!!! Duplicate identifier 'T'.
class C2<T, U, T> { }
~
!!! Duplicate identifier 'T'.
interface I<T, T> { }
~
!!! Duplicate identifier 'T'.
interface I2<T, U, T> { }
~
!!! Duplicate identifier 'T'.
function f<T, T>() { }
~
!!! Duplicate identifier 'T'.
function f2<T, U, T>() { }
~
!!! Duplicate identifier 'T'.