TypeScript/tests/baselines/reference/generativeRecursionWithTypeOf.types

29 lines
461 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/generativeRecursionWithTypeOf.ts ===
class C<T> {
>C : C<T>
>T : T
2014-08-15 23:33:16 +02:00
static foo(x: number) { }
>foo : (x: number) => void
>x : number
2014-08-15 23:33:16 +02:00
type: T;
>type : T
>T : T
2014-08-15 23:33:16 +02:00
}
module M {
>M : typeof M
2014-08-15 23:33:16 +02:00
export function f(x: typeof C) {
>f : (x: typeof C) => C<typeof C>
>x : typeof C
>C : typeof C
2014-08-15 23:33:16 +02:00
return new x<typeof x>();
>new x<typeof x>() : C<typeof C>
>x : typeof C
>x : typeof C
2014-08-15 23:33:16 +02:00
}
}