TypeScript/tests/baselines/reference/infiniteExpandingTypeThroughInheritanceInstantiation.js

14 lines
221 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [infiniteExpandingTypeThroughInheritanceInstantiation.ts]
interface A<T>
{
x: A<B<T>>
}
interface B<T> extends A<T> // error
{
x: B<A<T>>
}
//// [infiniteExpandingTypeThroughInheritanceInstantiation.js]