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

5 lines
137 B
TypeScript

var Person:new () => {name: string;} = function () {return {name:"joe"};};
var Person2:{new() : {name:string;};};
Person = Person2;