Details
Description
This example compiles and runs fine:
import QtQuick
Item {
Component.onCompleted: { ([]) => {} }
}
But causes this error when run through `qmlformat`:
4:28: [Dom][QmlFile][Parsing] Error: Expected token `,' for .currentItem
Attachments
For Gerrit Dashboard: QTBUG-111511 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
464378,2 | tst_format: Verify that object destructuring is handled, too | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |
463981,4 | qmlformat: Fix handling of object destructuring in functions | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
464168,2 | qmlformat: Fix handling of object destructuring in functions | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
464169,2 | qmlformat: Fix handling of object destructuring in functions | 6.5.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
464187,5 | qmlformat: Fix handling of object destructuring in functions | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |
465719,1 | qmlformat: Fix handling of object destructuring in functions | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |