4 lines
No EOL
273 B
Text
4 lines
No EOL
273 B
Text
==== tests/cases/compiler/contextualTyping39.ts (1 errors) ====
|
|
var foo = <{ (): number; }> function() { return "err"; };
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Neither type '() => number' nor type '() => string' is assignable to the other. |