2014-11-05 21:26:03 +01:00
|
|
|
tests/cases/compiler/contextualTyping11.ts(1,13): error TS2322: Type 'foo[]' is not assignable to type '{ id: number; }[]'.
|
2014-10-28 08:28:59 +01:00
|
|
|
Type 'foo' is not assignable to type '{ id: number; }'.
|
2014-09-12 22:35:07 +02:00
|
|
|
Property 'id' is missing in type 'foo'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/contextualTyping11.ts (1 errors) ====
|
|
|
|
class foo { public bar:{id:number;}[] = [<foo>({})]; }
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2014-11-05 21:26:03 +01:00
|
|
|
!!! error TS2322: Type 'foo[]' is not assignable to type '{ id: number; }[]'.
|
|
|
|
!!! error TS2322: Type 'foo' is not assignable to type '{ id: number; }'.
|
|
|
|
!!! error TS2322: Property 'id' is missing in type 'foo'.
|