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