TypeScript/tests/baselines/reference/contextuallyTypingOrOperator3.errors.txt
2014-09-12 13:35:07 -07:00

9 lines
488 B
Plaintext

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