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