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

9 lines
543 B
Plaintext
Raw Normal View History

tests/cases/compiler/genericConstraint3.ts(2,16): 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/genericConstraint3.ts (1 errors) ====
interface C<P> { x: P; }
interface A<T, U extends C<T>> { x: 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
interface B extends A<{}, { x: {} }> { } // Should not produce an error