aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlls/utils/data/JSUsagesFromAnotherFile.qml
blob: eb0cbf70be6d4f3163317e7e3583f76cf189e21d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick

JSUsages {
    function f() {
        // sanity check: reuse variable names from function f in JSUsages. Those should not appear
        // as usages of the sum of JSUsages.
        let sum = 0;
        sum += 1;
        sum += helloProperty + 32 // valid usage of JSUsages's helloProperty
        return sum
    }

}