diff options
Diffstat (limited to 'tests/auto/qmlls/utils/data/completions/labelledStatement.qml')
-rw-r--r-- | tests/auto/qmlls/utils/data/completions/labelledStatement.qml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/auto/qmlls/utils/data/completions/labelledStatement.qml b/tests/auto/qmlls/utils/data/completions/labelledStatement.qml new file mode 100644 index 0000000000..e223d6465b --- /dev/null +++ b/tests/auto/qmlls/utils/data/completions/labelledStatement.qml @@ -0,0 +1,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 + } +} |