Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.11.1
-
None
Description
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() ) }
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-23019 Wrong auto-format of ES7 arrow functions leads to invalid/broken code
- Closed