TypeScript/tests/cases/compiler/genericConstructInvocationWithNoTypeArg.ts

5 lines
83 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface Foo<T> {
new (x: number): Foo<T>;
}
var f2: Foo<number> = new Foo(3);