9 lines
255 B
Plaintext
9 lines
255 B
Plaintext
|
=== tests/cases/compiler/contextualTyping38.ts ===
|
||
|
var foo = <{ (): number; }> function(a) { return a };
|
||
|
>foo : () => number
|
||
|
><{ (): number; }> function(a) { return a } : () => number
|
||
|
>function(a) { return a } : (a: any) => any
|
||
|
>a : any
|
||
|
>a : any
|
||
|
|