23 lines
1 KiB
Text
23 lines
1 KiB
Text
=== tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts ===
|
|
class CDoc {
|
|
>CDoc : CDoc, Symbol(CDoc,Decl(functionExpressionAndLambdaMatchesFunction.ts,0,0))
|
|
|
|
constructor() {
|
|
function doSomething(a: Function) {
|
|
>doSomething : (a: Function) => void, Symbol(doSomething,Decl(functionExpressionAndLambdaMatchesFunction.ts,1,23))
|
|
>a : Function, Symbol(a,Decl(functionExpressionAndLambdaMatchesFunction.ts,2,29))
|
|
>Function : Function, Symbol(Function,Decl(lib.d.ts,223,38),Decl(lib.d.ts,269,11))
|
|
}
|
|
doSomething(() => undefined);
|
|
>doSomething(() => undefined) : void
|
|
>doSomething : (a: Function) => void, Symbol(doSomething,Decl(functionExpressionAndLambdaMatchesFunction.ts,1,23))
|
|
>() => undefined : () => any
|
|
>undefined : undefined, Symbol(undefined)
|
|
|
|
doSomething(function () { });
|
|
>doSomething(function () { }) : void
|
|
>doSomething : (a: Function) => void, Symbol(doSomething,Decl(functionExpressionAndLambdaMatchesFunction.ts,1,23))
|
|
>function () { } : () => void
|
|
}
|
|
}
|
|
|