TypeScript/tests/cases/compiler/typeParameterConstrainedToOuterTypeParameter2.ts

10 lines
144 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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;