29 lines
No EOL
1.6 KiB
Text
29 lines
No EOL
1.6 KiB
Text
tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts(1,12): error TS2300: Duplicate identifier 'T'.
|
|
tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts(2,16): error TS2300: Duplicate identifier 'T'.
|
|
tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts(4,16): error TS2300: Duplicate identifier 'T'.
|
|
tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts(5,20): error TS2300: Duplicate identifier 'T'.
|
|
tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts(7,15): error TS2300: Duplicate identifier 'T'.
|
|
tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts(8,19): error TS2300: Duplicate identifier 'T'.
|
|
|
|
|
|
==== tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts (6 errors) ====
|
|
class C<T, T> { }
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
|
class C2<T, U, T> { }
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
|
|
|
interface I<T, T> { }
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
|
interface I2<T, U, T> { }
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
|
|
|
function f<T, T>() { }
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
|
function f2<T, U, T>() { }
|
|
~
|
|
!!! error TS2300: Duplicate identifier 'T'. |