diff options
Diffstat (limited to 'tests/auto/qmlls/utils/data/completions/throwStatement.qml')
-rw-r--r-- | tests/auto/qmlls/utils/data/completions/throwStatement.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/qmlls/utils/data/completions/throwStatement.qml b/tests/auto/qmlls/utils/data/completions/throwStatement.qml new file mode 100644 index 0000000000..927c885f54 --- /dev/null +++ b/tests/auto/qmlls/utils/data/completions/throwStatement.qml @@ -0,0 +1,11 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQuick + +Item { + function f(x) { + throw 1; + throw { x: "myError" }; + } +} |