TypeScript/tests/baselines/reference/contextualTyping39.errors.txt
2014-09-05 17:09:00 -07:00

5 lines
No EOL
330 B
Text

==== tests/cases/compiler/contextualTyping39.ts (1 errors) ====
var foo = <{ (): number; }> function() { return "err"; };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! Neither type '() => string' nor type '() => number' is assignable to the other:
!!! Type 'string' is not assignable to type 'number'.