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

19 lines
430 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/members/objectTypeWithCallSignatureHidingMembersOfFunctionAssignmentCompat.ts (2 errors) ====
interface I {
(): void;
}
var i: I;
var f: Object;
f = i;
i = f;
~
!!! Type 'Object' is not assignable to type 'I'.
var a: {
(): void
}
f = a;
a = f;
~
!!! Type 'Object' is not assignable to type '() => void'.