Open kelloggm opened 4 years ago
Integer
implements Comparable<@UnknownVal Integer>
so @IntVal(1)
is not a subtype of Comparable<@IntVal Integer>
We don't have a mechanism to express that the annotation on the type argument to Comparable should be the same as the annotation on Integer.
Consider the following program, which is derived from the Apache Ofbiz test suite's ComparableRangeTests.java:
I expect the Value Checker not to produce output on this program. However, what I get instead is:
I'm especially unsure what to make of the second error.
Here's the output with
-verbose -version -AprintAllQualifiers
: