forked from qt-creator/qt-creator
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>
10 lines
225 B
QML
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
|
|
}
|