2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/instanceSubtypeCheck1.ts ===
|
|
|
|
interface A<T>
|
|
|
|
>A : A<T>
|
|
|
|
>T : T
|
|
|
|
{
|
|
|
|
x: A<B<T>>
|
|
|
|
>x : A<B<T>>
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
|
|
|
>B : B<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
interface B<T> extends A<T>
|
|
|
|
>B : B<T>
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
{
|
|
|
|
x: B<A<T>>
|
|
|
|
>x : B<A<T>>
|
2014-08-19 04:56:03 +02:00
|
|
|
>B : B<T>
|
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|