TypeScript/tests/baselines/reference/typeParameterConstrainedToOuterTypeParameter2.types
2015-04-15 16:44:20 -07:00

39 lines
552 B
Plaintext

=== tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts ===
interface A<T> {
>A : A<T>
>T : T
foo<U extends T>(x: A<A<U>>)
>foo : <U extends T>(x: A<A<U>>) => any
>U : U
>T : T
>x : A<A<U>>
>A : A<T>
>A : A<T>
>U : U
}
interface B<T> {
>B : B<T>
>T : T
foo<U extends T>(x: B<B<U>>)
>foo : <U extends T>(x: B<B<U>>) => any
>U : U
>T : T
>x : B<B<U>>
>B : B<T>
>B : B<T>
>U : U
}
var a: A<string>
>a : A<string>
>A : A<T>
var b: B<string> = a;
>b : B<string>
>B : B<T>
>a : A<string>