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

7 lines
332 B
Plaintext

==== tests/cases/compiler/matchingOfObjectLiteralConstraints.ts (1 errors) ====
function foo2<T, U extends { y: T; }>(x: U, z: T) { }
~~~~~~~~~~~~~~~~~~~
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
foo2({ y: "foo" }, "foo");