You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SecondaryIndex.java:9: error: [array.access.unsafe.high] Potentially unsafe array access: the index could be larger than the array's bound
b[j] = a[i];
^
found : @LTEqLengthOf("a") int
required: @IndexFor("b") or @LTLengthOf("b") -- an integer less than b's length
SecondaryIndex.java:10: error: [compound.assignment.type.incompatible] incompatible result type in compound assignment.
++j;
^
found : @LTLengthOf(value="a", offset="-2") int
required: @LTEqLengthOf("a") int
2 errors
The text was updated successfully, but these errors were encountered:
Index checker cannot check code that increments an index (other than the loop variable) in a loop.
Example:
Output:
The text was updated successfully, but these errors were encountered: