23 lines
422 B
Plaintext
23 lines
422 B
Plaintext
|
=== tests/cases/compiler/fatArrowfunctionAsType.ts ===
|
||
|
declare var b: <T>(x: T) => void ;
|
||
|
>b : <T>(x: T) => void
|
||
|
>T : T
|
||
|
>x : T
|
||
|
>T : T
|
||
|
|
||
|
var c: <T>(x: T) => void = function <T>(x: T) { return 42; }
|
||
|
>c : <T>(x: T) => void
|
||
|
>T : T
|
||
|
>x : T
|
||
|
>T : T
|
||
|
>function <T>(x: T) { return 42; } : <T>(x: T) => number
|
||
|
>T : T
|
||
|
>x : T
|
||
|
>T : T
|
||
|
|
||
|
b = c;
|
||
|
>b = c : <T>(x: T) => void
|
||
|
>b : <T>(x: T) => void
|
||
|
>c : <T>(x: T) => void
|
||
|
|