18 lines
No EOL
922 B
Text
18 lines
No EOL
922 B
Text
tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts(1,14): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
|
tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts(3,19): error TS2304: Cannot find name 'T'.
|
|
tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts(4,14): error TS2304: Cannot find name 'T'.
|
|
|
|
|
|
==== tests/cases/compiler/genericMergedDeclarationUsingTypeParameter.ts (3 errors) ====
|
|
function foo<T extends U, U>(y: T, z: U) { return y; }
|
|
~~~~~~~~~~~
|
|
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
|
module foo {
|
|
export var x: T;
|
|
~
|
|
!!! error TS2304: Cannot find name 'T'.
|
|
var y = <T>1;
|
|
~
|
|
!!! error TS2304: Cannot find name 'T'.
|
|
}
|
|
|