summaryrefslogtreecommitdiff
path: root/tests/auto/qml/codemodel/check/expression-statement.qml
blob: 80c5a7601ca423374f06083e36d714357cf25dce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import QtQuick 2.0

Rectangle {
    function foo() {
        a // 127 9 9
        a + b // 127 9 13
        a()
        delete b
        a = 12
        a += 12
        d().foo // 127 9 15
    }
    x: a + b
    y: { a + b }
    z: if (a)
           b
       else
           c
    width: {
        function foo() {
            a // 127 13 13
        }
        foo()
        a
    }
}