TypeScript/tests/baselines/reference/generativeRecursionWithTypeOf.types
2015-04-15 16:44:20 -07:00

29 lines
461 B
Plaintext

=== tests/cases/compiler/generativeRecursionWithTypeOf.ts ===
class C<T> {
>C : C<T>
>T : T
static foo(x: number) { }
>foo : (x: number) => void
>x : number
type: T;
>type : T
>T : T
}
module M {
>M : typeof M
export function f(x: typeof C) {
>f : (x: typeof C) => C<typeof C>
>x : typeof C
>C : typeof C
return new x<typeof x>();
>new x<typeof x>() : C<typeof C>
>x : typeof C
>x : typeof C
}
}