22 lines
330 B
Plaintext
22 lines
330 B
Plaintext
=== tests/cases/compiler/genericConstraint3.ts ===
|
|
interface C<P> { x: P; }
|
|
>C : C<P>
|
|
>P : P
|
|
>x : P
|
|
>P : P
|
|
|
|
interface A<T, U extends C<T>> { x: U; }
|
|
>A : A<T, U>
|
|
>T : T
|
|
>U : U
|
|
>C : C<P>
|
|
>T : T
|
|
>x : U
|
|
>U : U
|
|
|
|
interface B extends A<{}, { x: {} }> { } // Should not produce an error
|
|
>B : B
|
|
>A : A<T, U>
|
|
>x : {}
|
|
|