Error -------------------------------------------------------------------------------------------------- hoisted.js:10:3 Cannot call `f` because possibly uninitialized variable [1] is not a function. [not-a-function] hoisted.js:10:3 10| f(); // error, possibly undefined ^ References: hoisted.js:8:9 8| var f = function () {}; ^ [1] Error -------------------------------------------------------------------------------------------------- hoisted.js:17:3 Cannot call `f` because possibly uninitialized variable [1] is not a function. [not-a-function] hoisted.js:17:3 17| f(); // error, possibly undefined ^ References: hoisted.js:15:9 15| var f = function () {}; ^ [1] Error -------------------------------------------------------------------------------------------------- hoisted.js:31:3 Cannot call `f` because possibly uninitialized variable [1] is not a function. [not-a-function] hoisted.js:31:3 31| f(); // error, possibly undefined ^ References: hoisted.js:29:9 29| var f = function () {}; ^ [1] Error -------------------------------------------------------------------------------------------------- hoisted.js:38:3 Cannot call `f` because possibly uninitialized variable [1] is not a function. [not-a-function] hoisted.js:38:3 38| f(); // error, possibly undefined ^ References: hoisted.js:36:9 36| var f = function () {}; ^ [1] Error -------------------------------------------------------------------------------------------------- hoisted.js:45:3 Cannot call `f` because possibly uninitialized variable [1] is not a function. [not-a-function] hoisted.js:45:3 45| f(); // error, possibly undefined ^ References: hoisted.js:43:9 43| var f = function () {}; ^ [1] Error ------------------------------------------------------------------------------------------------ hoisted2.js:17:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:17:18 17| var y:number = x; // error ^ References: hoisted2.js:16:7 16| var x:number; ^ [1] hoisted2.js:17:9 17| var y:number = x; // error ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------ hoisted2.js:33:20 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:33:20 33| var y:number = x; // error ^ References: hoisted2.js:31:9 31| var x:number = 0; ^ [1] hoisted2.js:33:11 33| var y:number = x; // error ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------ hoisted2.js:39:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:39:18 39| var y:number = x; // error ^ References: hoisted2.js:41:9 41| var x:number = 0; ^ [1] hoisted2.js:39:9 39| var y:number = x; // error ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------ hoisted2.js:50:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:50:18 50| var y:number = x; // error ^ References: hoisted2.js:48:9 48| var x:number = 0; ^ [1] hoisted2.js:50:9 50| var y:number = x; // error ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------- hoisted2.js:58:9 Cannot declare `x` [1] because var redeclaration is not supported. [name-already-bound] hoisted2.js:58:9 58| var x:number = 1; // error: banned redeclaration ^ References: hoisted2.js:56:9 56| var x:number = 0; ^ [1] Error ------------------------------------------------------------------------------------------------ hoisted2.js:69:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:69:18 69| var y:number = x; // error, possibly uninitialized ^ References: hoisted2.js:65:7 65| var x:number; ^ [1] hoisted2.js:69:9 69| var y:number = x; // error, possibly uninitialized ^^^^^^ [2] Error ------------------------------------------------------------------------------------------------ hoisted2.js:94:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:94:18 94| var y:number = x; // error, possibly uninitialized ^ References: hoisted2.js:85:7 85| var x:number; ^ [1] hoisted2.js:94:9 94| var y:number = x; // error, possibly uninitialized ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:124:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:124:18 124| var y:number = x; // error ^ References: hoisted2.js:127:11 127| var x:number = 0; ^ [1] hoisted2.js:124:9 124| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:137:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:137:18 137| var y:number = x; // error ^ References: hoisted2.js:135:11 135| var x:number = 0; ^ [1] hoisted2.js:137:9 137| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:146:22 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:146:22 146| var y:number = x; // error ^ References: hoisted2.js:144:11 144| var x:number = 0; ^ [1] hoisted2.js:146:13 146| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:160:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:160:18 160| var y:number = x; // error ^ References: hoisted2.js:162:9 162| var x:number = 0; ^ [1] hoisted2.js:160:9 160| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:171:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:171:18 171| var y:number = x; // error ^ References: hoisted2.js:169:9 169| var x:number = 0; ^ [1] hoisted2.js:171:9 171| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:184:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:184:18 184| var y:number = x; // error ^ References: hoisted2.js:186:9 186| var x:number = 0; ^ [1] hoisted2.js:184:9 184| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:208:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:208:18 208| var y:number = x; // error ^ References: hoisted2.js:210:9 210| var x:number = 0; ^ [1] hoisted2.js:208:9 208| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:219:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:219:18 219| var y:number = x; // error ^ References: hoisted2.js:217:9 217| var x:number = 0; ^ [1] hoisted2.js:219:9 219| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:232:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:232:18 232| var y:number = x; // error ^ References: hoisted2.js:234:9 234| var x:number = 0; ^ [1] hoisted2.js:232:9 232| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:243:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:243:18 243| var y:number = x; // error ^ References: hoisted2.js:241:9 241| var x:number = 0; ^ [1] hoisted2.js:243:9 243| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:255:18 Cannot assign `x` to `y` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:255:18 255| var y:number = x; // error ^ References: hoisted2.js:256:12 256| for (var x of [1, 2, 3]) {} ^ [1] hoisted2.js:255:9 255| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------- hoisted2.js:262:18 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] hoisted2.js:262:18 262| var y:number = x; // error ^ References: hoisted2.js:261:12 261| for (var x of [1, 2, 3]) {} ^ [1] hoisted2.js:262:9 262| var y:number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------------- let.js:17:19 Cannot assign `x` to `z` because uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] let.js:17:19 17| let z: number = x; // error ^ References: let.js:15:7 15| let x: number; ^ [1] let.js:17:10 17| let z: number = x; // error ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------------- let.js:24:11 Cannot use variable `x` [1] because the declaration either comes later or was skipped. [reference-before-declaration] let.js:24:11 24| let x = x; // 'x' not initialized! ^ References: let.js:24:7 24| let x = x; // 'x' not initialized! ^ [1] Error ----------------------------------------------------------------------------------------------------- let.js:33:19 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] let.js:33:19 33| var y: number = x; // error, possibly uninitialized ^ References: let.js:29:7 29| let x: number; ^ [1] let.js:33:10 33| var y: number = x; // error, possibly uninitialized ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------------- let.js:58:19 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] let.js:58:19 58| var y: number = x; // error, possibly uninitialized ^ References: let.js:49:7 49| let x: number; ^ [1] let.js:58:10 58| var y: number = x; // error, possibly uninitialized ^^^^^^ [2] Error ----------------------------------------------------------------------------------------------------- let.js:83:23 Cannot use variable `x` [1] because the declaration either comes later or was skipped. [reference-before-declaration] let.js:83:23 83| let y: number = x; // error, skipped declaration ^ References: let.js:81:11 81| let x: number; ^ [1] Error ----------------------------------------------------------------------------------------------------- let.js:93:19 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] let.js:93:19 93| var y: number = x; // error ^ References: let.js:89:7 89| let x: number; ^ [1] let.js:93:10 93| var y: number = x; // error ^^^^^^ [2] Error ---------------------------------------------------------------------------------------------------- let.js:111:19 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] let.js:111:19 111| var y: number = x; // error ^ References: let.js:107:7 107| var x: number; ^ [1] let.js:111:10 111| var y: number = x; // error ^^^^^^ [2] Error ---------------------------------------------------------------------------------------------------- let.js:120:19 Cannot assign `x` to `y` because possibly uninitialized variable [1] is incompatible with `number` [2]. [incompatible-type] let.js:120:19 120| var y: number = x; // error ^ References: let.js:116:7 116| var x: number; ^ [1] let.js:120:10 120| var y: number = x; // error ^^^^^^ [2] Found 32 errors