2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts ===
|
|
|
|
class CDoc {
|
2015-04-13 23:01:57 +02:00
|
|
|
>CDoc : CDoc, Symbol(CDoc, Decl(functionExpressionAndLambdaMatchesFunction.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
constructor() {
|
|
|
|
function doSomething(a: Function) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>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))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
doSomething(() => undefined);
|
|
|
|
>doSomething(() => undefined) : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>doSomething : (a: Function) => void, Symbol(doSomething, Decl(functionExpressionAndLambdaMatchesFunction.ts, 1, 23))
|
2014-08-15 23:33:16 +02:00
|
|
|
>() => undefined : () => any
|
2015-04-13 22:54:22 +02:00
|
|
|
>undefined : undefined, Symbol(undefined)
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
doSomething(function () { });
|
|
|
|
>doSomething(function () { }) : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>doSomething : (a: Function) => void, Symbol(doSomething, Decl(functionExpressionAndLambdaMatchesFunction.ts, 1, 23))
|
2014-08-15 23:33:16 +02:00
|
|
|
>function () { } : () => void
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|