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

6 lines
482 B
Plaintext

==== tests/cases/compiler/contextualTyping24.ts (1 errors) ====
var foo:(a:{():number; (i:number):number; })=>number; foo = function(a:string){return 5};
~~~
!!! Type '(a: string) => number' is not assignable to type '(a: { (): number; (i: number): number; }) => number':
!!! Types of parameters 'a' and 'a' are incompatible:
!!! Type 'string' is not assignable to type '{ (): number; (i: number): number; }'.