TypeScript/tests/baselines/reference/callConstructAssignment.errors.txt
2014-07-12 17:30:19 -07:00

13 lines
349 B
Plaintext

==== tests/cases/compiler/callConstructAssignment.ts (2 errors) ====
var foo:{ ( ):void; }
var bar:{ new ( ):any; }
foo = bar; // error
~~~
!!! Type 'new () => any' is not assignable to type '() => void'.
bar = foo; // error
~~~
!!! Type '() => void' is not assignable to type 'new () => any'.