aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2011-11-10 16:36:54 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-14 16:39:25 +0100
commitfff130ee6c4b4a06d0f90fa8ed8c3a6c4218035f (patch)
tree5a8f1f23253b110cdec03def8e50678d5eb5b31d /tests/auto/declarative/qdeclarativeecmascript/data
parent2ad0e1978347dd7c1782a9edb5047351c3fb6706 (diff)
Fix parsing of unary expressions.
Prohibit the lexer to synthesize a semicolon token after the colon-sign of a binding declaration. The parser internally was rewriting the following bindings Component.onCompleted: ++foo as Component.onCompleted: ; ++foo Task-number: QTBUG-21310 Change-Id: I0558d17fd81b5abac81fb990502d49767ea40730 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/unaryExpression.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/unaryExpression.qml b/tests/auto/declarative/qdeclarativeecmascript/data/unaryExpression.qml
new file mode 100644
index 0000000000..0d40bec710
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/unaryExpression.qml
@@ -0,0 +1,9 @@
+import QtQuick 2.0
+
+Item {
+
+ Component.onCompleted:
+++bar
+
+ property int bar: 0
+}