Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Michael Brasser
authored and
Qt by Nokia
committed
Feb 16, 2012
1 parent
2df9abf
commit 64a5087
Showing
4 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import QtQuick 2.0 | ||
|
||
Item { | ||
property real test1: +i1.p2 | ||
property int test2: +i1.p2 | ||
property real test3: +i1.p1 | ||
property int test4: +i1.p1 | ||
property real test5: +i1.p3 | ||
property int test6: +i1.p3 | ||
property real test7: +i1.p4 | ||
property int test8: +i1.p4 | ||
property real test9: +i1.p5 | ||
property int test10: +i1.p5 | ||
|
||
QtObject { | ||
id: i1 | ||
property real p1: -3.7 | ||
property int p2: 18 | ||
property real p3: -3.3 | ||
property int p4: -7 | ||
property real p5: 4.4 | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters