TypeScript/tests/cases/compiler/constructorTypeWithTypeParameters.ts

8 lines
146 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @declaration: true
declare var X: {
new <T>(): number;
}
declare var Y: {
new (): number;
}
var anotherVar: new <T>() => number;