TypeScript/tests/baselines/reference/constructorAsType.errors.txt

8 lines
330 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/constructorAsType.ts (1 errors) ====
var Person:new () => {name: string;} = function () {return {name:"joe"};};
~~~~~~
2014-07-13 01:04:16 +02:00
!!! Type '() => { name: string; }' is not assignable to type 'new () => { name: string; }'.
var Person2:{new() : {name:string;};};
Person = Person2;