25 lines
482 B
Text
25 lines
482 B
Text
|
=== tests/cases/compiler/noImplicitAnyFunctionExpressionAssignment.ts ===
|
||
|
|
||
|
var x: (a: any) => void = function <T>(x: T) {
|
||
|
>x : (a: any) => void
|
||
|
>a : any
|
||
|
>function <T>(x: T) { return null;} : <T>(x: T) => any
|
||
|
>T : T
|
||
|
>x : T
|
||
|
>T : T
|
||
|
|
||
|
return null;
|
||
|
};
|
||
|
|
||
|
var x2: (a: any) => void = function f<T>(x: T) {
|
||
|
>x2 : (a: any) => void
|
||
|
>a : any
|
||
|
>function f<T>(x: T) { return null;} : <T>(x: T) => any
|
||
|
>f : <T>(x: T) => any
|
||
|
>T : T
|
||
|
>x : T
|
||
|
>T : T
|
||
|
|
||
|
return null;
|
||
|
};
|