diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-02-03 14:45:49 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-02-14 12:38:10 +0100 |
commit | 89b7e8def608906d541e0adfc559a1eedf9358cf (patch) | |
tree | 305c2ee189fee1f4ee12db47f4c17fbf62c42ead /tests | |
parent | 8be258b7e69fdc94a4a6a63d1964d96f8dfcb50e (diff) |
QmlCompiler: Allow assigning empty lists to list properties
Generate an empty list when creating a list with 0 elements.
Task-number: QTBUG-100157
Change-Id: I3b0fe0b737a8ec5257785ae32231f4b687d3b204
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/typedArray.qml | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt index 053c3bccc2..9a1c9cd0aa 100644 --- a/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt +++ b/tests/auto/qml/qmlcppcodegen/data/CMakeLists.txt @@ -110,6 +110,7 @@ set(qml_files text.qml themerbad.qml themergood.qml + typedArray.qml undefinedResets.qml unknownAttached.qml unknownParameter.qml diff --git a/tests/auto/qml/qmlcppcodegen/data/typedArray.qml b/tests/auto/qml/qmlcppcodegen/data/typedArray.qml new file mode 100644 index 0000000000..d2ab3d6f1b --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/typedArray.qml @@ -0,0 +1,6 @@ +pragma Strict +import QtQml + +QtObject { + property list<int> values2: [] +} |