Set the type for unary expressions in v4.
authorMichael Brasser <michael.brasser@nokia.com>
Wed, 15 Feb 2012 00:27:44 +0000 (10:27 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 16 Feb 2012 07:31:10 +0000 (08:31 +0100)
commit64a5087df7896524bf6af30067f442d1fc8458bc
tree5492a8c315062110be7c445c9fe5cfe8812fa7c9
parent2df9abf7047afbe20b19d156ac37b58d9b047575
Set the type for unary expressions in v4.

Previously unary expressions were being discarded because the type
was not set. Also add tests verifying the results.

Change-Id: Icbb493fbb6f036e59c8a4a1fe232c118312a63a5
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
src/declarative/qml/v4/qv4ir_p.h
tests/auto/declarative/v4/data/unaryMinus.qml
tests/auto/declarative/v4/data/unaryPlus.qml [new file with mode: 0644]
tests/auto/declarative/v4/tst_v4.cpp