6 lines
No EOL
358 B
Text
6 lines
No EOL
358 B
Text
==== tests/cases/compiler/genericConstraint3.ts (1 errors) ====
|
|
interface C<P> { x: P; }
|
|
interface A<T, U extends C<T>> { x: U; }
|
|
~~~~~~~~~~~~~~
|
|
!!! Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
|
interface B extends A<{}, { x: {} }> { } // Should not produce an error |