2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/infinitelyExpandingBaseTypes2.ts ===
|
|
|
|
interface A<T>
|
|
|
|
>A : A<T>
|
|
|
|
>T : T
|
|
|
|
{
|
|
|
|
x : A<()=>T>
|
|
|
|
>x : A<() => T>
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
interface B<T>
|
|
|
|
>B : B<T>
|
|
|
|
>T : T
|
|
|
|
{
|
|
|
|
x : B<()=>T>
|
|
|
|
>x : B<() => T>
|
2014-08-19 04:56:03 +02:00
|
|
|
>B : B<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
var a: A<string>
|
|
|
|
>a : A<string>
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b: B<string> = a
|
|
|
|
>b : B<string>
|
2014-08-19 04:56:03 +02:00
|
|
|
>B : B<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>a : A<string>
|
|
|
|
|