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

23 lines
845 B
Plaintext
Raw Normal View History

2014-11-05 21:26:03 +01:00
tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts(8,1): error TS2322: Type 'Object' is not assignable to type 'I'.
tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts(14,1): error TS2322: Type 'Object' is not assignable to type 'new () => any'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/members/objectTypeWithConstructSignatureHidingMembersOfFunctionAssignmentCompat.ts (2 errors) ====
interface I {
new(): any;
}
var i: I;
var f: Object;
f = i;
i = f;
~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'Object' is not assignable to type 'I'.
2014-07-13 01:04:16 +02:00
var a: {
new(): any
}
f = a;
a = f;
~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'Object' is not assignable to type 'new () => any'.