aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-04-18 15:54:07 +0200
committerUlf Hermann <ulf.hermann@qt.io>2023-04-19 20:01:09 +0200
commit1ceaeab9827b95725231e714754e058e006eb1ed (patch)
tree5bd5d7b81ea8f703e432d9f381b88f7ed7f3c1f4 /tests/auto/qml/qmlcppcodegen/data
parent82f2ee8027f733cec5961aac27a171cf0b78a70b (diff)
QmlCompiler: Don't crash when checking for enum problems
When checking for CallProperty we want the call base, not the accumulator. Pick-to: 6.5 Change-Id: I24ac066dd440bde459e20b3cf962af04ca531629 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data')
-rw-r--r--tests/auto/qml/qmlcppcodegen/data/failures.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/failures.qml b/tests/auto/qml/qmlcppcodegen/data/failures.qml
index f90fb44fe1..e5a186829d 100644
--- a/tests/auto/qml/qmlcppcodegen/data/failures.qml
+++ b/tests/auto/qml/qmlcppcodegen/data/failures.qml
@@ -62,4 +62,8 @@ QtObject {
let a;
return a;
}
+
+ function getText(myArr: list<string>): string {
+ myArr.shiftss()
+ }
}