Files
qt-creator/tests/auto/qml/codemodel/check/expression-statement.qml
Christian Kamm 37bcdcf4f0 QmlJS checks: Disable warnings about expression statements in bindings.
Change-Id: Ic3aca50bec93ec3b810dbda2f9b57eefb966bbdf
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
2011-12-02 14:49:59 +01:00

27 lines
378 B
QML

import Qt 4.7
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
}
}