TypeScript/tests/cases/compiler/genericConstraint3.ts

3 lines
137 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface C<P> { x: P; }
interface A<T, U extends C<T>> { x: U; }
interface B extends A<{}, { x: {} }> { } // Should not produce an error