Skip to content

Commit 24fd185

Browse files
author
dlsmith
committed
DynamicJava: Fixed internal error for "+=" used with strings.
git-svn-id: file:///tmp/test-svn/trunk@5215 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent 0fad47b commit 24fd185

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dynamicjava/src/edu/rice/cs/dynamicjava/interpreter/ExpressionChecker.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,6 +1226,7 @@ private Type handleNumericUnaryExpression(UnaryExpression node) {
12261226
if (ts.isEqual(leftT, TypeSystem.STRING)) {
12271227
try {
12281228
Expression right = ts.makeReference(node.getRightExpression());
1229+
setLeftExpression(node, node.getLeftExpression()); // not to be confused with node.setLeftExpression(...)
12291230
node.setRightExpression(right);
12301231
setOperation(node, ExpressionEvaluator.CONCATENATE);
12311232
}

0 commit comments

Comments
 (0)