TypeScript/tests/cases/compiler/namedFunctionExpressionCallErrors.ts

16 lines
263 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
var recurser = function foo() {
};
// Error: foo should not be visible here
foo();
// recurser should be
recurser();
(function bar() {
// Error: foo should not be visible here either
foo();
});
// Error: bar should not be visible
bar();