mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-154629 Character is an invalid type for bit-shifting operations in Evaluate Expression
This commit is contained in:
+5
@@ -500,6 +500,11 @@ public class EvaluatorBuilderImpl implements EvaluatorBuilder {
|
||||
}
|
||||
}
|
||||
}
|
||||
// unary numeric promotion if applicable
|
||||
else if (operation == JavaTokenType.GTGT || operation == JavaTokenType.LTLT || operation == JavaTokenType.GTGTGT) {
|
||||
lResult = handleUnaryNumericPromotion(lType, lResult);
|
||||
rResult = handleUnaryNumericPromotion(rType, rResult);
|
||||
}
|
||||
|
||||
return new BinaryExpressionEvaluator(lResult, rResult, operation, expressionExpectedType.getCanonicalText());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user