TypeScript/tests/cases/compiler/generativeRecursionWithTypeOf.ts
2014-07-12 17:30:19 -07:00

10 lines
165 B
TypeScript

class C<T> {
static foo(x: number) { }
type: T;
}
module M {
export function f(x: typeof C) {
return new x<typeof x>();
}
}