14 lines
405 B
Plaintext
14 lines
405 B
Plaintext
|
tests/cases/compiler/letShadowedByNameInNestedScope.ts(6,9): error TS2304: Cannot find name 'console'.
|
||
|
|
||
|
|
||
|
==== tests/cases/compiler/letShadowedByNameInNestedScope.ts (1 errors) ====
|
||
|
var x;
|
||
|
function foo() {
|
||
|
let x = 0;
|
||
|
(function () {
|
||
|
var _x = 1;
|
||
|
console.log(x);
|
||
|
~~~~~~~
|
||
|
!!! error TS2304: Cannot find name 'console'.
|
||
|
})();
|
||
|
}
|