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
LessThan annotations aren't transitive, but they should be. If we know a < b < c, then we should be able to safely conclude a < c. Consider the following test case:
checker/tests/index/LessThanTransitivity.java:5: error: [return.type.incompatible] incompatible types in return.
return a;
^
found : @LessThan("b") int
required: @LessThan("c") int
1 error
Expected: no errors
The text was updated successfully, but these errors were encountered:
LessThan
annotations aren't transitive, but they should be. If we knowa < b < c
, then we should be able to safely concludea < c
. Consider the following test case:Output:
Expected: no errors
The text was updated successfully, but these errors were encountered: