2014-11-05 21:26:03 +01:00
tests/cases/compiler/contextualTyping24.ts(1,55): error TS2322: Type '(a: string) => number' is not assignable to type '(a: { (): number; (i: number): number; }) => number'.
2014-10-28 08:28:59 +01:00
Types of parameters 'a' and 'a' are incompatible.
2014-09-12 22:35:07 +02:00
Type 'string' is not assignable to type '{ (): number; (i: number): number; }'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/contextualTyping24.ts (1 errors) ====
var foo:(a:{():number; (i:number):number; })=>number; foo = function(a:string){return 5};
~~~
2014-11-05 21:26:03 +01:00
!!! error TS2322: Type '(a: string) => number' is not assignable to type '(a: { (): number; (i: number): number; }) => number'.
!!! error TS2322: Types of parameters 'a' and 'a' are incompatible.
!!! error TS2322: Type 'string' is not assignable to type '{ (): number; (i: number): number; }'.