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

17 lines
641 B
Plaintext
Raw Normal View History

2014-11-05 21:26:03 +01:00
tests/cases/compiler/callConstructAssignment.ts(7,1): error TS2322: Type 'new () => any' is not assignable to type '() => void'.
tests/cases/compiler/callConstructAssignment.ts(8,1): error TS2322: 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-11-05 21:26:03 +01:00
!!! error TS2322: Type 'new () => any' is not assignable to type '() => void'.
2014-07-13 01:04:16 +02:00
bar = foo; // error
~~~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type '() => void' is not assignable to type 'new () => any'.