2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/namedFunctionExpressionCallErrors.ts(5,1): error TS2304: Cannot find name 'foo'.
|
|
|
|
tests/cases/compiler/namedFunctionExpressionCallErrors.ts(12,5): error TS2304: Cannot find name 'foo'.
|
|
|
|
tests/cases/compiler/namedFunctionExpressionCallErrors.ts(16,1): error TS2304: Cannot find name 'bar'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/namedFunctionExpressionCallErrors.ts (3 errors) ====
|
|
|
|
var recurser = function foo() {
|
|
|
|
};
|
|
|
|
|
|
|
|
// Error: foo should not be visible here
|
|
|
|
foo();
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// recurser should be
|
|
|
|
recurser();
|
|
|
|
|
|
|
|
(function bar() {
|
|
|
|
// Error: foo should not be visible here either
|
|
|
|
foo();
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'foo'.
|
2014-07-13 01:04:16 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
// Error: bar should not be visible
|
|
|
|
bar();
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'bar'.
|