aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmldom/domdata/domitem/returnStatements.qml
blob: 62835c408b5a991dfb1ea51526358a0de50c47dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only 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;
    }
}