2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/mutuallyRecursiveGenericBaseTypes2.ts ===
|
|
|
|
class foo<T>
|
|
|
|
>foo : foo<T>
|
|
|
|
>T : T
|
|
|
|
{
|
|
|
|
bar(): foo2<T[]> { return null; }
|
|
|
|
>bar : () => foo2<T[]>
|
2014-08-19 04:56:03 +02:00
|
|
|
>foo2 : foo2<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
class foo2<T> extends foo<T> {
|
|
|
|
>foo2 : foo2<T>
|
|
|
|
>T : T
|
2014-08-19 04:56:03 +02:00
|
|
|
>foo : foo<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
var test = new foo<string>();
|
|
|
|
>test : foo<string>
|
|
|
|
>new foo<string>() : foo<string>
|
|
|
|
>foo : typeof foo
|
|
|
|
|