error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
parserES5ForOfStatement4.ts(1,10): error TS1190: The variable declaration of a 'for...of' statement cannot have an initializer.
parserES5ForOfStatement4.ts(1,19): error TS2304: Cannot find name 'X'.


!!! error TS5107: Option 'target=ES5' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
==== parserES5ForOfStatement4.ts (2 errors) ====
    for (var a = 1 of X) {
             ~
!!! error TS1190: The variable declaration of a 'for...of' statement cannot have an initializer.
                      ~
!!! error TS2304: Cannot find name 'X'.
    }