TypeScript/tests/baselines/reference/testTypings.errors.txt
2014-09-11 16:11:08 -07:00

16 lines
422 B
Plaintext

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