==== tests/cases/compiler/testTypings.ts (1 errors) ==== interface IComparable { compareTo(other: T); } declare function sort>(items: U[]): U[]; ~~~~~~~~~~~~~~~~~~~~~~~~ !!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.