Merging equivalent case statements
@@ -630,6 +630,7 @@ class TypeInference
break;
case OPTCHAIN_CALL:
+ case OPTCHAIN_GETELEM:
// TODO(b/151248857) Calculate appropriate type here
n.setJSType(getNativeType(UNKNOWN_TYPE));
break;
@@ -738,11 +739,6 @@ class TypeInference
n.setJSType(getNativeType(BOOLEAN_TYPE));
break;
- case OPTCHAIN_GETELEM:
- // TODO(b/151248857) Calculate appropriate type here
- n.setJSType(getNativeType(UNKNOWN_TYPE));
- break;
-
case GETELEM:
scope = traverseGetElem(n, scope);
break;
