Files
tsgo/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationInStrictModule.js

18 lines
374 B
TypeScript

//// [tests/cases/compiler/blockScopedFunctionDeclarationInStrictModule.ts] ////
//// [blockScopedFunctionDeclarationInStrictModule.ts]
if (true) {
function foo() { }
foo(); // ok
}
export = foo; // not ok
//// [blockScopedFunctionDeclarationInStrictModule.js]
"use strict";
if (true) {
function foo() { }
foo(); // ok
}
module.exports = foo;