aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qmlls/utils/data/completions/labelledStatement.qml
blob: e223d6465b04c44df4b7d7208eb8812c73a7f16d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import QtQuick

Item {
    function f(x) {
        label1: f(f(x))

        nestedLabel1: for (let i = 0; i < 3; ++i) {
            nestedLabel2: for (let j = 0; j < 3; ++j) {
                if (i === 1 && j === 1) {
                    continue nestedLabel1;
                }
            }
        }

        multilabel1:
        multilabel2: f(1 + f(x))

        return x + y
    }
}