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