Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
5.15.12, 6.2.7, 6.4.2, 6.5.0 Beta1
-
None
Description
Code
import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true Component.onCompleted: { console.log("Assigning constants...") let [a, b] = [1, 2] console.log(a, b) console.log("Swapping variables...") [a, b] = [b, a] console.log(a, b) } }
Output
qml: Assigning constants... qml: 1 2 qml: Swapping variables... qrc:/main.qml:14: TypeError: Value is undefined and could not be converted to an object