Files
tsgo/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.errors.txt

12 lines
336 B
Plaintext

blockScopedFunctionDeclarationInStrictModule.ts(6,10): error TS2304: Cannot find name 'foo'.
==== blockScopedFunctionDeclarationInStrictModule.ts (1 errors) ====
if (true) {
function foo() { }
foo(); // ok
}
export = foo; // not ok
~~~
!!! error TS2304: Cannot find name 'foo'.