23 lines
No EOL
845 B
Text
23 lines
No EOL
845 B
Text
tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts(8,1): error TS2323: Type 'Object' is not assignable to type 'I'.
|
|
tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts(14,1): error TS2323: Type 'Object' is not assignable to type 'new () => any'.
|
|
|
|
|
|
==== tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts (2 errors) ====
|
|
interface I {
|
|
new(): any;
|
|
}
|
|
|
|
var i: I;
|
|
var f: Object;
|
|
f = i;
|
|
i = f;
|
|
~
|
|
!!! error TS2323: Type 'Object' is not assignable to type 'I'.
|
|
|
|
var a: {
|
|
new(): any
|
|
}
|
|
f = a;
|
|
a = f;
|
|
~
|
|
!!! error TS2323: Type 'Object' is not assignable to type 'new () => any'. |