2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/instanceSubtypeCheck1.ts ===
|
|
|
|
interface A<T>
|
2015-04-13 23:01:57 +02:00
|
|
|
>A : A<T>, Symbol(A, Decl(instanceSubtypeCheck1.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(instanceSubtypeCheck1.ts, 0, 12))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
x: A<B<T>>
|
2015-04-13 23:01:57 +02:00
|
|
|
>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))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
interface B<T> extends A<T>
|
2015-04-13 23:01:57 +02:00
|
|
|
>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))
|
2014-08-15 23:33:16 +02:00
|
|
|
{
|
|
|
|
x: B<A<T>>
|
2015-04-13 23:01:57 +02:00
|
|
|
>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))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|