24 lines
906 B
Text
24 lines
906 B
Text
=== tests/cases/compiler/instanceSubtypeCheck1.ts ===
|
|
interface A<T>
|
|
>A : Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0))
|
|
>T : Symbol(T, Decl(instanceSubtypeCheck1.ts, 0, 12))
|
|
{
|
|
x: A<B<T>>
|
|
>x : Symbol(x, Decl(instanceSubtypeCheck1.ts, 1, 1))
|
|
>A : Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0))
|
|
>B : Symbol(B, Decl(instanceSubtypeCheck1.ts, 3, 1))
|
|
>T : Symbol(T, Decl(instanceSubtypeCheck1.ts, 0, 12))
|
|
}
|
|
|
|
interface B<T> extends A<T>
|
|
>B : Symbol(B, Decl(instanceSubtypeCheck1.ts, 3, 1))
|
|
>T : Symbol(T, Decl(instanceSubtypeCheck1.ts, 5, 12))
|
|
>A : Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0))
|
|
>T : Symbol(T, Decl(instanceSubtypeCheck1.ts, 5, 12))
|
|
{
|
|
x: B<A<T>>
|
|
>x : Symbol(x, Decl(instanceSubtypeCheck1.ts, 6, 1))
|
|
>B : Symbol(B, Decl(instanceSubtypeCheck1.ts, 3, 1))
|
|
>A : Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0))
|
|
>T : Symbol(T, Decl(instanceSubtypeCheck1.ts, 5, 12))
|
|
}
|