mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
374 B
TypeScript
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;
|