| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java
|
| index 172416fd4176eafb96357c7257cec796fed50ced..1ae03bf702c1a15cbe33f2ebd8221622f3b66249 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/constant/ValidResult.java
|
| @@ -277,7 +277,9 @@ public class ValidResult extends EvaluationResultImpl {
|
| if (!isAnyNum() || !leftOperand.isAnyNum()) {
|
| return error(node, CompileTimeErrorCode.CONST_EVAL_TYPE_NUM);
|
| }
|
| - if (isSomeNum() || leftOperand.isSomeNum()) {
|
| + if (isSomeInt() || leftOperand.isSomeInt()) {
|
| + return RESULT_INT;
|
| + } else if (isSomeNum() || leftOperand.isSomeNum()) {
|
| return RESULT_NUM;
|
| }
|
| Object leftValue = leftOperand.getValue();
|
| @@ -721,7 +723,9 @@ public class ValidResult extends EvaluationResultImpl {
|
| if (!isAnyNum() || !leftOperand.isAnyNum()) {
|
| return error(node, CompileTimeErrorCode.CONST_EVAL_TYPE_NUM);
|
| }
|
| - if (isSomeNum() || leftOperand.isSomeNum()) {
|
| + if (isSomeInt() || leftOperand.isSomeInt()) {
|
| + return RESULT_INT;
|
| + } else if (isSomeNum() || leftOperand.isSomeNum()) {
|
| return RESULT_NUM;
|
| }
|
| Object leftValue = leftOperand.getValue();
|
| @@ -796,7 +800,9 @@ public class ValidResult extends EvaluationResultImpl {
|
| if (!isAnyNum() || !leftOperand.isAnyNum()) {
|
| return error(node, CompileTimeErrorCode.CONST_EVAL_TYPE_NUM);
|
| }
|
| - if (isSomeNum() || leftOperand.isSomeNum()) {
|
| + if (isSomeInt() || leftOperand.isSomeInt()) {
|
| + return RESULT_INT;
|
| + } else if (isSomeNum() || leftOperand.isSomeNum()) {
|
| return RESULT_NUM;
|
| }
|
| Object leftValue = leftOperand.getValue();
|
| @@ -894,7 +900,9 @@ public class ValidResult extends EvaluationResultImpl {
|
| if (!isAnyNum() || !leftOperand.isAnyNum()) {
|
| return error(node, CompileTimeErrorCode.CONST_EVAL_TYPE_NUM);
|
| }
|
| - if (isSomeNum() || leftOperand.isSomeNum()) {
|
| + if (isSomeInt() || leftOperand.isSomeInt()) {
|
| + return RESULT_INT;
|
| + } else if (isSomeNum() || leftOperand.isSomeNum()) {
|
| return RESULT_NUM;
|
| }
|
| Object leftValue = leftOperand.getValue();
|
|
|