Files
tsgo/testdata/baselines/reference/submodule/compiler/blockScopedFunctionDeclarationES5(target=es2015).js

17 lines
296 B
TypeScript

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