10 lines
No EOL
314 B
Text
10 lines
No EOL
314 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; }':
|
|
!!! Property 'one' is optional in type 'I3' but required in type '{ one: number; }'. |