Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
Assigning undefined to a non-resettable property should trigger a warning from qmllint/LSP. This should also hold for potentially undefined values created by optional chaining. Consider
import QtQuick Item { property Item foo visible: undefined//foo?.visible }
Attachments
Issue Links
- replaces
-
QTBUG-104324 Simplify QML optional chaining operator usage with bool properties
- Closed