diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-08-21 15:52:39 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2023-08-23 15:30:11 +0200 |
commit | 8d9dfd33478c30567bbab073eed899b169dd4386 (patch) | |
tree | 0dfd6e7944a43fcd1eb072822766b6cafda5357c /tests/auto/qml/qmllint | |
parent | d554714a6c2d5f1ffdbca8e22f3c29fc03d28ba6 (diff) |
QmlCompiler: Fix conversion from/to void
We can convert everything to void, but we can only convert from void if
the result is either void or the invalid type.
Pick-to: 6.6
Fixes: QTBUG-116088
Change-Id: I532055405865c5b1581f79cc5d76c253bce6138d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests/auto/qml/qmllint')
-rw-r--r-- | tests/auto/qml/qmllint/data/pluginQuick_anchorsUndefined.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmllint/data/pluginQuick_anchorsUndefined.qml b/tests/auto/qml/qmllint/data/pluginQuick_anchorsUndefined.qml index 2a51cceac3..b6c0f59c7f 100644 --- a/tests/auto/qml/qmllint/data/pluginQuick_anchorsUndefined.qml +++ b/tests/auto/qml/qmllint/data/pluginQuick_anchorsUndefined.qml @@ -5,5 +5,6 @@ Item { anchors.horizontalCenter: undefined anchors.verticalCenter: undefined anchors.baseline: undefined + Component.onCompleted: anchors.bottom = undefined } } |