Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix #471

  • Loading branch information...
commit 992390efca9dd13ab8c1bce109b7eb2c8daaf443 1 parent 748f7b1
@gavinking gavinking authored
View
4 src/com/redhat/ceylon/compiler/typechecker/analyzer/ExpressionVisitor.java
@@ -2324,7 +2324,7 @@ else if (l instanceof Tree.PositiveOp) {
l = ((Tree.PositiveOp) l).getTerm();
}
if (u instanceof Tree.NegativeOp) {
- u = ((Tree.NegativeOp) l).getTerm();
+ u = ((Tree.NegativeOp) u).getTerm();
unegated = true;
}
else if (u instanceof Tree.PositiveOp) {
@@ -2336,7 +2336,7 @@ else if (u instanceof Tree.PositiveOp) {
int lindex = Integer.parseInt(l.getText());
if (lnegated) lindex = -lindex;
int uindex = Integer.parseInt(u.getText());
- if (unegated) lindex = -uindex;
+ if (unegated) uindex = -uindex;
List<ProducedType> elementTypes = argtypes(pt);
boolean sequenced = argsequenced(pt);
//TODO: handle terminating type of tuple type!

0 comments on commit 992390e

Please sign in to comment.
Something went wrong with that request. Please try again.