2015-03-24 00:16:29 +01:00
|
|
|
//// [letShadowedByNameInNestedScope.ts]
|
|
|
|
var x;
|
|
|
|
function foo() {
|
|
|
|
let x = 0;
|
|
|
|
(function () {
|
|
|
|
var _x = 1;
|
|
|
|
console.log(x);
|
|
|
|
})();
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [letShadowedByNameInNestedScope.js]
|
|
|
|
var x;
|
|
|
|
function foo() {
|
2015-03-24 18:09:33 +01:00
|
|
|
var x = 0;
|
2015-03-24 00:16:29 +01:00
|
|
|
(function () {
|
|
|
|
var _x = 1;
|
2015-03-24 18:09:33 +01:00
|
|
|
console.log(x);
|
2015-03-24 00:16:29 +01:00
|
|
|
})();
|
|
|
|
}
|