2014-09-12 22:35:07 +02:00
|
|
|
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'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/types/typeParameters/typeParameterLists/typesWithDuplicateTypeParameters.ts (6 errors) ====
|
|
|
|
class C<T, T> { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
2014-07-13 01:04:16 +02:00
|
|
|
class C2<T, U, T> { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
interface I<T, T> { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
2014-07-13 01:04:16 +02:00
|
|
|
interface I2<T, U, T> { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
function f<T, T>() { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'T'.
|
2014-07-13 01:04:16 +02:00
|
|
|
function f2<T, U, T>() { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2300: Duplicate identifier 'T'.
|