19 lines
430 B
Plaintext
19 lines
430 B
Plaintext
==== 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'. |