21 lines
620 B
Text
21 lines
620 B
Text
|
==== 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'.
|