aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmldom/domdata/domitem/returnStatements.qml
blob: 4f503244fb0b5cfe297972d199395d4cbdf91847 (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 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;
    }
}