blob: 9d844eab3bdb55ee3d13ab9a66f5fb60a3d10775 (
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 QtQml
QtObject {
function f() {
let sum = 0, sum2 = 0
for(let i = 1; i < 42; i = i + 2) {
sum = sum + i
{
let sum = 42; // another unrelated sum
}
}
}
}
|