TypeScript/tests/baselines/reference/genericConstraint3.types
2015-12-01 15:52:32 -08:00

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 : {}