-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.11.1
-
None
Let's have a code:
Ugly code with lambda
QtObject{
property string text: qsTr("Destroy the code")
property var action: () => oh.no()
}
Execute Tools->QML/JS->Reformat File
And we end up with broken code:
After Reformat
QtObject {
property string text: qsTr("Destroy the code")
property var action: function oh
oh oh.no()
)
}
- duplicates
-
QTCREATORBUG-23019 Wrong auto-format of ES7 arrow functions leads to invalid/broken code
-
- Closed
-