Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.2
-
None
-
729edeb34 (6.5)
Description
Qmlformat removes the parameterlist from a lambda expression
import QtQuick
Item {
function test(object){
object.forEach(([]) => {
})
}
width: ({})=>{}
}
Gets formatted to:
import QtQuick
Item {
function test(object) {
object.forEach([ => {})
}
width: { => {}
}
as you can see the [ is never closed and the code would never compile after formatting
The same happens when you use {} instead of []
This could be related to QTBUG-111511
Attachments
For Gerrit Dashboard: QTBUG-116153 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
504444,5 | qmlformat: Port object destructuring fixes to 6.5 | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |