diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2023-11-01 14:11:37 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-11-04 03:52:18 +0000 |
commit | 590a47bc0cf557c36503df8ec493d826ae6c878d (patch) | |
tree | d5dba44419deae976c6493844d3cf167a300dda1 /tests/auto/qml/qmlcppcodegen/data/ShadowedObjectName.qml | |
parent | 97f627eabebbacff910fa22ceb266a6ea06b2df6 (diff) |
QmlCompiler: Extend shadow-checking
Method return values as well as whatever we hide behind "unknown" can
contain shadowable properties. We need to check it.
Pick-to: 6.5 6.2
Task-number: QTBUG-117800
Change-Id: I518bc11fd0c9c69340bf621198eeaf4c95d17dae
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
(cherry picked from commit 048c8f226ae09b79264e5dfc51f5d8fe7a8332a9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/ShadowedObjectName.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/ShadowedObjectName.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/ShadowedObjectName.qml b/tests/auto/qml/qmlcppcodegen/data/ShadowedObjectName.qml new file mode 100644 index 0000000000..f079f4a94e --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/ShadowedObjectName.qml @@ -0,0 +1,6 @@ +pragma Strict +import QtQml + +QtObject { + property int objectName: 12 +} |