TypeScript/tests/baselines/reference/infiniteExpandingTypeThroughInheritanceInstantiation.types
2015-04-15 16:44:20 -07:00

26 lines
331 B
Plaintext

=== tests/cases/compiler/infiniteExpandingTypeThroughInheritanceInstantiation.ts ===
interface A<T>
>A : A<T>
>T : T
{
x: A<B<T>>
>x : A<B<T>>
>A : A<T>
>B : B<T>
>T : T
}
interface B<T> extends A<T> // error
>B : B<T>
>T : T
>A : A<T>
>T : T
{
x: B<A<T>>
>x : B<A<T>>
>B : B<T>
>A : A<T>
>T : T
}