TypeScript/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.types

25 lines
409 B
Plaintext
Raw Normal View History

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