TypeScript/tests/baselines/reference/contextuallyTypingOrOperator3.errors.txt
2014-07-12 17:30:19 -07:00

6 lines
292 B
Plaintext

==== 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;
}