TypeScript/tests/baselines/reference/contextualTyping21.errors.txt
2014-07-12 17:30:19 -07:00

6 lines
340 B
Plaintext

==== tests/cases/compiler/contextualTyping21.ts (1 errors) ====
var foo:{id:number;}[] = [{id:1}]; foo = [{id:1}, 1];
~~~
!!! Type '{}[]' is not assignable to type '{ id: number; }[]':
!!! Type '{}' is not assignable to type '{ id: number; }':
!!! Property 'id' is missing in type '{}'.