diff options
Diffstat (limited to 'tests/auto/qmldom/domdata/domitem/returnStatements.qml')
-rw-r--r-- | tests/auto/qmldom/domdata/domitem/returnStatements.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qmldom/domdata/domitem/returnStatements.qml b/tests/auto/qmldom/domdata/domitem/returnStatements.qml new file mode 100644 index 0000000000..4f503244fb --- /dev/null +++ b/tests/auto/qmldom/domdata/domitem/returnStatements.qml @@ -0,0 +1,14 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only + +import QtQml + +QtObject { + // TODO: Add a test for returning void + function returningFunction(i) { + if (i) + return 123; + else + return 1 + 2; + } +} |