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