2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/namedFunctionExpressionCall.ts ===
|
|
|
|
var recurser = function foo() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>recurser : () => void, Symbol(recurser, Decl(namedFunctionExpressionCall.ts, 0, 3))
|
2014-08-22 03:39:46 +02:00
|
|
|
>function foo() { // using the local name foo(); // using the globally visible name recurser();} : () => void
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : () => void, Symbol(foo, Decl(namedFunctionExpressionCall.ts, 0, 14))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// using the local name
|
|
|
|
foo();
|
|
|
|
>foo() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>foo : () => void, Symbol(foo, Decl(namedFunctionExpressionCall.ts, 0, 14))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
// using the globally visible name
|
|
|
|
recurser();
|
2014-09-05 22:05:36 +02:00
|
|
|
>recurser() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>recurser : () => void, Symbol(recurser, Decl(namedFunctionExpressionCall.ts, 0, 3))
|
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
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : () => void, Symbol(bar, Decl(namedFunctionExpressionCall.ts, 9, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
bar();
|
|
|
|
>bar() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>bar : () => void, Symbol(bar, Decl(namedFunctionExpressionCall.ts, 9, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
});
|