6 lines
No EOL
292 B
Text
6 lines
No EOL
292 B
Text
==== tests/cases/compiler/contextuallyTypingOrOperator3.ts (1 errors) ====
|
|
function foo<T, U extends T>(u: U) {
|
|
~~~~~~~~~~~
|
|
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
|
var x3: U = u || u;
|
|
} |