14 lines
221 B
JavaScript
14 lines
221 B
JavaScript
//// [infiniteExpandingTypeThroughInheritanceInstantiation.ts]
|
|
interface A<T>
|
|
{
|
|
x: A<B<T>>
|
|
}
|
|
|
|
interface B<T> extends A<T> // error
|
|
{
|
|
x: B<A<T>>
|
|
}
|
|
|
|
|
|
//// [infiniteExpandingTypeThroughInheritanceInstantiation.js]
|