4 lines
329 B
Plaintext
4 lines
329 B
Plaintext
==== 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. |