Skip to content

Commit

Permalink
ExpressionTransformer #1917: fix type of assignment in expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Nov 18, 2014
1 parent 010558c commit ab64e6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4521,7 +4521,7 @@ private JCExpression transformAssignment(Node op, Tree.Term leftTerm, Tree.Term
if (tmpInStatement) {
return transformAssignment(op, leftTerm, rhs);
} else {
ProducedType valueType = leftTerm.getTypeModel();
ProducedType valueType = rightTerm.getTypeModel();
return transformAssignAndReturnOperation(op, leftTerm, boxing == BoxingStrategy.BOXED,
valueType, valueType, new AssignAndReturnOperationFactory(){
@Override
Expand Down

0 comments on commit ab64e6c

Please sign in to comment.