19 lines
323 B
TypeScript
19 lines
323 B
TypeScript
//// [letShadowedByNameInNestedScope.ts]
|
|
var x;
|
|
function foo() {
|
|
let x = 0;
|
|
(function () {
|
|
var _x = 1;
|
|
console.log(x);
|
|
})();
|
|
}
|
|
|
|
//// [letShadowedByNameInNestedScope.js]
|
|
var x;
|
|
function foo() {
|
|
var x = 0;
|
|
(function () {
|
|
var _x = 1;
|
|
console.log(x);
|
|
})();
|
|
}
|