23 lines
720 B
Text
23 lines
720 B
Text
|
=== tests/cases/compiler/targetTypingOnFunctions.ts ===
|
||
|
var fu: (s: string) => string = function (s) { return s.toLowerCase() };
|
||
|
>fu : (s: string) => string
|
||
|
>s : string
|
||
|
>function (s) { return s.toLowerCase() } : (s: string) => string
|
||
|
>s : string
|
||
|
>s.toLowerCase() : string
|
||
|
>s.toLowerCase : () => string
|
||
|
>s : string
|
||
|
>toLowerCase : () => string
|
||
|
|
||
|
var zu = fu = function (s) { return s.toLowerCase() };
|
||
|
>zu : (s: string) => string
|
||
|
>fu = function (s) { return s.toLowerCase() } : (s: string) => string
|
||
|
>fu : (s: string) => string
|
||
|
>function (s) { return s.toLowerCase() } : (s: string) => string
|
||
|
>s : string
|
||
|
>s.toLowerCase() : string
|
||
|
>s.toLowerCase : () => string
|
||
|
>s : string
|
||
|
>toLowerCase : () => string
|
||
|
|