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