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

17 lines
296 B
TypeScript

//// [tests/cases/compiler/blockScopedFunctionDeclarationES6.ts] ////
//// [blockScopedFunctionDeclarationES6.ts]
if (true) {
function foo() { }
foo();
}
foo();
//// [blockScopedFunctionDeclarationES6.js]
"use strict";
if (true) {
function foo() { }
foo();
}
foo();