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

12 lines
846 B
Plaintext

==== tests/cases/compiler/recursiveGenericTypeHierarchy.ts (4 errors) ====
// used to ICE
interface A<T extends A<T, S>, S extends A<T, S>> { }
~~~~~~~~~~~~~~~~~
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~~~~~~~~~~~
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
interface B<T extends B<T, S>, S extends B<T, S>> extends A<B<T, S>, B<T, S>> { }
~~~~~~~~~~~~~~~~~
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
~~~~~~~~~~~~~~~~~
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.