2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/namedFunctionExpressionCall.ts ===
|
|
|
|
var recurser = function foo() {
|
2014-09-05 22:05:36 +02:00
|
|
|
>recurser : () => void
|
2014-08-22 03:39:46 +02:00
|
|
|
>function foo() { // using the local name foo(); // using the globally visible name recurser();} : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>foo : () => void
|
|
|
|
|
|
|
|
// using the local name
|
|
|
|
foo();
|
|
|
|
>foo() : void
|
|
|
|
>foo : () => void
|
|
|
|
|
|
|
|
// using the globally visible name
|
|
|
|
recurser();
|
2014-09-05 22:05:36 +02:00
|
|
|
>recurser() : void
|
|
|
|
>recurser : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
(function bar() {
|
2014-08-22 03:39:46 +02:00
|
|
|
>(function bar() { bar();}) : () => void
|
|
|
|
>function bar() { bar();} : () => void
|
2014-08-15 23:33:16 +02:00
|
|
|
>bar : () => void
|
|
|
|
|
|
|
|
bar();
|
|
|
|
>bar() : void
|
|
|
|
>bar : () => void
|
|
|
|
|
|
|
|
});
|