@martyone I was wondering about if the qmllint which checks the QML files in the Sailfish IDE could catch such an issues. Does the Sailfish SDK using a fork or an upstream qmllint?
AFAIK neither Sailfish IDE nor the upstream Qt Creator makes any use of qmllint. Sailfish IDE does not differ from the upstream Qt Creator in the static QML code checker. Anyway, to me the issue discussed here does not seem to be generic enough to be suitable for any of these.