TypeScript/tests/baselines/reference/functionExpressionAndLambdaMatchesFunction.types

24 lines
591 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/functionExpressionAndLambdaMatchesFunction.ts ===
class CDoc {
>CDoc : CDoc
2014-08-15 23:33:16 +02:00
constructor() {
function doSomething(a: Function) {
>doSomething : (a: Function) => void
>a : Function
>Function : Function
2014-08-15 23:33:16 +02:00
}
doSomething(() => undefined);
>doSomething(() => undefined) : void
>doSomething : (a: Function) => void
2014-08-15 23:33:16 +02:00
>() => undefined : () => any
>undefined : undefined
2014-08-15 23:33:16 +02:00
doSomething(function () { });
>doSomething(function () { }) : void
>doSomething : (a: Function) => void
2014-08-15 23:33:16 +02:00
>function () { } : () => void
}
}