-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
Qt Creator 13.0.0
-
Ubuntu 22.04, Qt SDK 6.5.5
Consider this JS code:
for (let i = 0; i < 10; i++) { console.log(i); } for (let i = 0; i < 10; i++) { console.log(i); }
Here the variable `i` should be scoped to their parent for-loops, but yet Qt Creator gives warnings: `var "i" is used before its declaration` and `"i" is declared more than once`.
Note, that it says `var` despite `let` being used.