10 lines
313 B
Text
10 lines
313 B
Text
|
==== tests/cases/compiler/i3.ts (1 errors) ====
|
||
|
interface I3 { one?: number; };
|
||
|
var x: {one: number};
|
||
|
var i: I3;
|
||
|
|
||
|
i = x;
|
||
|
x = i;
|
||
|
~
|
||
|
!!! Type 'I3' is not assignable to type '{ one: number; }':
|
||
|
!!! Required property 'one' cannot be reimplemented with optional property in 'I3'.
|