Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 10.0.0
-
None
-
-
cd73f8c6b (master)
Description
Whenever the Reformat File command is executed (also on save, when the Enable auto format on file save is enabled) in a QML file having a for loop with the of keyword, the of will change to in.
ie the following code:
for (var i of ["one", "two", "free"]) console.debug(i)
will become:
for (var i in ["one", "two", "free"]) console.debug(i)
This initiative changes the program's behavior!
Application's output before format:
qml: one qml: two qml: free
and after:
qml: 0 qml: 1 qml: 2