TypeScript/tests/cases/compiler/generativeRecursionWithTypeOf.ts

10 lines
165 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
class C<T> {
static foo(x: number) { }
type: T;
}
module M {
export function f(x: typeof C) {
return new x<typeof x>();
}
}