24 lines
395 B
Plaintext
24 lines
395 B
Plaintext
=== tests/cases/compiler/mutuallyRecursiveGenericBaseTypes2.ts ===
|
|
class foo<T>
|
|
>foo : foo<T>
|
|
>T : T
|
|
{
|
|
bar(): foo2<T[]> { return null; }
|
|
>bar : () => foo2<T[]>
|
|
>foo2 : foo2<T>
|
|
>T : T
|
|
}
|
|
|
|
class foo2<T> extends foo<T> {
|
|
>foo2 : foo2<T>
|
|
>T : T
|
|
>foo : foo<T>
|
|
>T : T
|
|
}
|
|
|
|
var test = new foo<string>();
|
|
>test : foo<string>
|
|
>new foo<string>() : foo<string>
|
|
>foo : typeof foo
|
|
|