blob: 7d5d2ac9a54da343b649cfa2636f943b2fb82496 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
Item {
function count() {
let one = 1, two = 2, three = 3, four = 4, five = 5, six = 6
let testMe = 123
}
// for now only numeric literal and string literal is supported
function f() {
let sum = 0, helloWorld = "hello"
const a = 3;
const b = "patron";
var aa = helloWorld, bb = aa;
const bool1 = true;
let bool2 = false;
var nullVar = null;
return sum;
}
}
|