2014-10-28 08:28:59 +01:00
|
|
|
tests/cases/compiler/i3.ts(6,1): error TS2323: Type 'I3' is not assignable to type '{ one: number; }'.
|
2014-09-18 02:05:45 +02:00
|
|
|
Property 'one' is optional in type 'I3' but required in type '{ one: number; }'.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/i3.ts (1 errors) ====
|
|
|
|
interface I3 { one?: number; };
|
|
|
|
var x: {one: number};
|
|
|
|
var i: I3;
|
|
|
|
|
|
|
|
i = x;
|
|
|
|
x = i;
|
|
|
|
~
|
2014-10-28 08:28:59 +01:00
|
|
|
!!! error TS2323: Type 'I3' is not assignable to type '{ one: number; }'.
|
|
|
|
!!! error TS2323: Property 'one' is optional in type 'I3' but required in type '{ one: number; }'.
|