TypeScript/tests/baselines/reference/infiniteExpandingTypeThroughInheritanceInstantiation.js
2014-07-12 17:30:19 -07:00

14 lines
221 B
TypeScript

//// [infiniteExpandingTypeThroughInheritanceInstantiation.ts]
interface A<T>
{
x: A<B<T>>
}
interface B<T> extends A<T> // error
{
x: B<A<T>>
}
//// [infiniteExpandingTypeThroughInheritanceInstantiation.js]