13 lines
221 B
JavaScript
13 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]
|