22 lines
976 B
Text
22 lines
976 B
Text
=== tests/cases/compiler/mutuallyRecursiveGenericBaseTypes2.ts ===
|
|
class foo<T>
|
|
>foo : Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 0))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 10))
|
|
{
|
|
bar(): foo2<T[]> { return null; }
|
|
>bar : Symbol(bar, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 1, 1))
|
|
>foo2 : Symbol(foo2, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 3, 1))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 10))
|
|
}
|
|
|
|
class foo2<T> extends foo<T> {
|
|
>foo2 : Symbol(foo2, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 3, 1))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 5, 11))
|
|
>foo : Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 0))
|
|
>T : Symbol(T, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 5, 11))
|
|
}
|
|
|
|
var test = new foo<string>();
|
|
>test : Symbol(test, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 8, 3))
|
|
>foo : Symbol(foo, Decl(mutuallyRecursiveGenericBaseTypes2.ts, 0, 0))
|
|
|