13 lines
No EOL
349 B
Text
13 lines
No EOL
349 B
Text
==== 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'. |