TypeScript/tests/baselines/reference/typeParameterConstrainedToOuterTypeParameter2.js

16 lines
282 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [typeParameterConstrainedToOuterTypeParameter2.ts]
interface A<T> {
foo<U extends T>(x: A<A<U>>)
}
interface B<T> {
foo<U extends T>(x: B<B<U>>)
}
var a: A<string>
var b: B<string> = a;
//// [typeParameterConstrainedToOuterTypeParameter2.js]
var a;
var b = a;