2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/callConstructAssignment.ts(7,1): error TS2323: Type 'new () => any' is not assignable to type '() => void'.
|
|
|
|
tests/cases/compiler/callConstructAssignment.ts(8,1): error TS2323: Type '() => void' is not assignable to type 'new () => any'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/callConstructAssignment.ts (2 errors) ====
|
|
|
|
|
|
|
|
|
|
|
|
var foo:{ ( ):void; }
|
|
|
|
|
|
|
|
var bar:{ new ( ):any; }
|
|
|
|
|
|
|
|
foo = bar; // error
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2323: Type 'new () => any' is not assignable to type '() => void'.
|
2014-07-13 01:04:16 +02:00
|
|
|
bar = foo; // error
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2323: Type '() => void' is not assignable to type 'new () => any'.
|