TypeScript/tests/baselines/reference/testTypings.errors.txt

19 lines
586 B
Plaintext
Raw Normal View History

tests/cases/compiler/testTypings.ts(5,23): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
2014-07-13 01:04:16 +02:00
==== 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.
2014-07-13 01:04:16 +02:00