Files
qt-creator/tests/auto/qml/reformatter/nullishCoalescing.qml
Fawzi Mohamed 556ec7c20e qmljsreformatter: support nullish coalescing
qmljsscanner did interpret ?? and ?. as a single ? and thus as the
start of a ternary operator, breaking reformatting.

Fixes: QTCREATORBUG-27344
Change-Id: I0429d20aed0196743f1c20e6ceac11351d5a7a3b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
2022-05-06 13:23:34 +00:00

10 lines
225 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
Item {
property string otherString: ""
property string aProp: otherString ?? "N/A"
property string bProp: otherString?.trim()
property int unrelatedProp: 10
}