28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
=== tests/cases/compiler/noImplicitAnyFunctionExpressionAssignment.ts ===
|
|
|
|
var x: (a: any) => void = function <T>(x: T) {
|
|
>x : (a: any) => void, Symbol(x,Decl(noImplicitAnyFunctionExpressionAssignment.ts,1,3))
|
|
>a : any, Symbol(a,Decl(noImplicitAnyFunctionExpressionAssignment.ts,1,8))
|
|
>function <T>(x: T) { return null;} : <T>(x: T) => any
|
|
>T : T, Symbol(T,Decl(noImplicitAnyFunctionExpressionAssignment.ts,1,36))
|
|
>x : T, Symbol(x,Decl(noImplicitAnyFunctionExpressionAssignment.ts,1,39))
|
|
>T : T, Symbol(T,Decl(noImplicitAnyFunctionExpressionAssignment.ts,1,36))
|
|
|
|
return null;
|
|
>null : null
|
|
|
|
};
|
|
|
|
var x2: (a: any) => void = function f<T>(x: T) {
|
|
>x2 : (a: any) => void, Symbol(x2,Decl(noImplicitAnyFunctionExpressionAssignment.ts,5,3))
|
|
>a : any, Symbol(a,Decl(noImplicitAnyFunctionExpressionAssignment.ts,5,9))
|
|
>function f<T>(x: T) { return null;} : <T>(x: T) => any
|
|
>f : <T>(x: T) => any, Symbol(f,Decl(noImplicitAnyFunctionExpressionAssignment.ts,5,26))
|
|
>T : T, Symbol(T,Decl(noImplicitAnyFunctionExpressionAssignment.ts,5,38))
|
|
>x : T, Symbol(x,Decl(noImplicitAnyFunctionExpressionAssignment.ts,5,41))
|
|
>T : T, Symbol(T,Decl(noImplicitAnyFunctionExpressionAssignment.ts,5,38))
|
|
|
|
return null;
|
|
>null : null
|
|
|
|
};
|