TypeScript/tests/cases/compiler/constDeclarationShadowedByVarDeclaration2.ts

9 lines
164 B
TypeScript

// @target: ES6
// No errors, const declaration is not shadowed
function outer() {
const x = 0;
function inner() {
var x = "inner";
}
}