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

27 lines
1,005 B
Plaintext
Raw Normal View History

2014-11-05 21:26:03 +01:00
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts(13,1): error TS2322: Type 'I' is not assignable to type 'C'.
Property 'foo' is missing in type 'I'.
2014-11-05 21:26:03 +01:00
tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts(14,1): error TS2322: Type 'C' is not assignable to type 'I'.
Property 'fooo' is missing in type 'C'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithObjectMembers5.ts (2 errors) ====
class C {
foo: string;
}
var c: C;
interface I {
fooo: string;
}
var i: I;
c = i; // error
~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'I' is not assignable to type 'C'.
!!! error TS2322: Property 'foo' is missing in type 'I'.
2014-07-13 01:04:16 +02:00
i = c; // error
~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type 'C' is not assignable to type 'I'.
!!! error TS2322: Property 'fooo' is missing in type 'C'.