Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
6.3.1
-
-
84dd339e2eb3385eb143f9d5ab282a135635052d
Description
Qmlformat replace let with var in for loop defintion
import QtQuick 2 Rectangle { property int a: { let b = 1; for (let c = 0; c < 20; c++) { c += 1; } } }
with
import QtQuick 2 Rectangle { property int a: { let b = 1; for (var c = 0; c < 20; c++) { c += 1; } } }
I also get a qt.qmldom.writeOut: reparsed writeOut of file.qml has changes
Attachments
Issue Links
- duplicates
-
QTBUG-105361 qmlformat: Unnecessary replacement of 'let' with 'var', leading to inline write errors
- Closed